Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
3519748c
Commit
3519748c
authored
Feb 18, 2022
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: emtpy search result
parent
2e1ba659
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
2 deletions
+52
-2
empty.png
src/assets/images/pass/empty.png
+0
-0
PassList.vue
src/components/pass/PassList.vue
+1
-1
PassListTable.vue
src/components/pass/PassListTable.vue
+25
-0
TransferRecord.vue
src/components/pass/TransferRecord.vue
+1
-1
TransferRecordList.vue
src/components/pass/TransferRecordList.vue
+25
-0
No files found.
src/assets/images/pass/empty.png
0 → 100644
View file @
3519748c
8.81 KB
src/components/pass/PassList.vue
View file @
3519748c
...
...
@@ -69,7 +69,7 @@ export default {
});
this
.
total
=
res
.
data
.
total
;
if
(
refresh
)
{
this
.
passList
=
res
.
data
.
results
;
this
.
passList
=
res
.
data
.
results
||
[]
;
}
else
{
this
.
passList
=
this
.
passList
.
concat
(
res
.
data
.
results
);
}
...
...
src/components/pass/PassListTable.vue
View file @
3519748c
<
template
>
<div>
<el-table
v-if=
"passList.length > 0"
:data=
"passList"
:height=
"tableHeight"
v-load-more
.
expand=
"
{func: next, target: '.el-table__body-wrapper', delay: 500}"
...
...
@@ -46,6 +47,10 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"empty"
v-else
>
<img
src=
"../../assets/images/pass/empty.png"
alt=
""
>
<span>
搜索无结果
</span>
</div>
<!-- 转账弹窗-->
<common-dialog
showMask
v-if=
"passShow"
@
closePopup=
"passShow = false"
>
<transfer-pass
@
update=
"$emit('update', curItem.id, curItem.balance)"
:content=
"curItem"
@
closePopup=
"passShow = false"
></transfer-pass>
...
...
@@ -184,4 +189,24 @@ export default {
font-size: 12px;
font-weight: normal;
}
.empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: calc(100vh - 145px);
img {
width: 134px;
height: 113px;
margin-bottom: 6px;
}
span {
font-size: 14px;
color: #929292;
line-height: 20px;
}
}
</
style
>
src/components/pass/TransferRecord.vue
View file @
3519748c
...
...
@@ -66,7 +66,7 @@ export default {
});
this
.
total
=
res
.
data
.
total
;
if
(
refresh
)
{
this
.
transferList
=
res
.
data
.
results
;
this
.
transferList
=
res
.
data
.
results
||
[]
;
}
else
{
this
.
transferList
=
this
.
transferList
.
concat
(
res
.
data
.
results
);
}
...
...
src/components/pass/TransferRecordList.vue
View file @
3519748c
<
template
>
<div>
<el-table
v-if=
"transferList.length > 0"
:data=
"transferList"
:height=
"tableHeight"
v-load-more
.
expand=
"
{func: next, target: '.el-table__body-wrapper', delay: 500}"
...
...
@@ -35,6 +36,10 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"empty"
v-else
>
<img
src=
"../../assets/images/pass/empty.png"
alt=
""
>
<span>
搜索无结果
</span>
</div>
</div>
</template>
...
...
@@ -159,6 +164,26 @@ export default {
font-size: 12px;
font-weight: normal;
}
.empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: calc(100vh - 145px);
img {
width: 134px;
height: 113px;
margin-bottom: 6px;
}
span {
font-size: 14px;
color: #929292;
line-height: 20px;
}
}
</
style
>
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