web 所有模块的列表增加loading效果

This commit is contained in:
renpy 2023-07-28 16:23:35 +08:00
parent ce5af3975e
commit 8ddd89cf1a
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,7 @@ export default {
}
},
searchQueryData() {
this.loading = true
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
if (days <= 10) {
this.isImmediate = false
@ -155,6 +156,7 @@ export default {
pageSize: 10
}
getAction(this.url.list, params).then((res) => {
this.loading = false
if (res.success) {
this.ipagination.current = res.result.current
this.ipagination.pageSize = res.result.size

View File

@ -135,6 +135,7 @@ export default {
}
},
searchQueryData() {
this.loading = true
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
if (days <= 10) {
this.isImmediate = false
@ -149,6 +150,7 @@ export default {
pageSize: 10
}
getAction(this.url.list, params).then((res) => {
this.loading = false
if (res.success) {
this.ipagination.current = res.result.current
this.ipagination.pageSize = res.result.size