列表页面table组件,查询时增加loading效果

This commit is contained in:
renpy 2023-07-17 13:56:50 +08:00
parent 08dc2aeef3
commit c564150ad7
2 changed files with 4 additions and 3 deletions

View File

@ -166,6 +166,7 @@ export default {
},
searchQueryData() {
this.isImmediate = false
this.loading = true
// this.queryParam = {
// dataType: "S",
// startTime: "2023-05-01",
@ -178,6 +179,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

@ -90,9 +90,6 @@ export default {
}
},
methods: {
handleExcel() {
if (this.dataSource.length>0) {
// this.queryParam = {
@ -126,6 +123,7 @@ export default {
},
searchQueryData() {
this.isImmediate = false
this.loading = true
// this.queryParam = {
// dataType: "S",
// startTime: "2023-05-01",
@ -138,6 +136,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