列表页面table组件,查询时增加loading效果
This commit is contained in:
parent
27a9e836f5
commit
8089bd3ad7
|
@ -166,6 +166,7 @@ export default {
|
||||||
},
|
},
|
||||||
searchQueryData() {
|
searchQueryData() {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
|
this.loading = true
|
||||||
// this.queryParam = {
|
// this.queryParam = {
|
||||||
// dataType: "S",
|
// dataType: "S",
|
||||||
// startTime: "2023-05-01",
|
// startTime: "2023-05-01",
|
||||||
|
@ -178,6 +179,7 @@ export default {
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
}
|
}
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
this.loading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ipagination.current = res.result.current
|
this.ipagination.current = res.result.current
|
||||||
this.ipagination.pageSize = res.result.size
|
this.ipagination.pageSize = res.result.size
|
||||||
|
|
|
@ -90,9 +90,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
handleExcel() {
|
handleExcel() {
|
||||||
if (this.dataSource.length>0) {
|
if (this.dataSource.length>0) {
|
||||||
// this.queryParam = {
|
// this.queryParam = {
|
||||||
|
@ -126,6 +123,7 @@ export default {
|
||||||
},
|
},
|
||||||
searchQueryData() {
|
searchQueryData() {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
|
this.loading = true
|
||||||
// this.queryParam = {
|
// this.queryParam = {
|
||||||
// dataType: "S",
|
// dataType: "S",
|
||||||
// startTime: "2023-05-01",
|
// startTime: "2023-05-01",
|
||||||
|
@ -138,6 +136,7 @@ export default {
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
}
|
}
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
this.loading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ipagination.current = res.result.current
|
this.ipagination.current = res.result.current
|
||||||
this.ipagination.pageSize = res.result.size
|
this.ipagination.pageSize = res.result.size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user