Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
template_vue
Commits
ce61be0a
Commit
ce61be0a
authored
Apr 16, 2024
by
WBY1026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善对空表的处理
parent
554b8492
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
47 deletions
+67
-47
demoData1.vue
src/views/demoData/demoData1.vue
+67
-47
No files found.
src/views/demoData/demoData1.vue
View file @
ce61be0a
...
...
@@ -94,7 +94,7 @@
<div
class=
"list"
>
<div
class=
"list"
v-show=
"haveInfo"
>
<el-table
:data=
"mytableList"
v-loading=
"loading"
@
cell-click=
"cellClick"
>
<el-table-column
fixed
label=
"用户"
prop=
"ccc"
width=
"100px"
></el-table-column>
<!-- 月 -->
...
...
@@ -109,8 +109,6 @@
<img
src=
'./404.png'
alt=
'暂无数据,稍后重试'
/>
</
template
>
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
...
...
@@ -118,6 +116,17 @@
:total=
"totalPage"
>
</el-pagination>
</div>
<div
v-show=
"!haveInfo"
style=
" width: 100%;height: 300px; display: flex;"
>
<img
style=
"margin: auto;"
src=
'./404.png'
alt=
'暂无数据,稍后重试'
/>
</div>
<!-- <button @click="test">2222</button> -->
<!-- 点击表单内容出现的表格 -->
...
...
@@ -230,6 +239,8 @@ export default {
inputddd
:
''
,
inputdddd
:
''
,
haveInfo
:
true
,
// 弹窗控制
dialogTableVisible
:
false
,
gridData
:
[],
...
...
@@ -353,6 +364,8 @@ export default {
this
.
totalPage
=
res
.
data
})
searchTableList
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
length
!=
0
)
{
this
.
haveInfo
=
true
console
.
log
(
res
);
this
.
mytableList
=
res
.
data
// 判断返回的数据,然后调用渲染方法
...
...
@@ -364,6 +377,10 @@ export default {
this
.
getDateType3
()
}
this
.
loading
=
false
}
else
{
this
.
haveInfo
=
false
}
});
},
...
...
@@ -677,8 +694,7 @@ export default {
this
.
clickKey
=
key
console
.
log
(
'高亮赋值'
+
this
.
clickKey
);
if
(
value
)
{
this
.
dialogTempData
=
{
aaa
:
this
.
lockaaa
,
bbb
:
this
.
lockbbb
,
...
...
@@ -718,6 +734,10 @@ export default {
this
.
dialogTableVisible
=
true
})
}
},
// 高亮某一列
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment