|
@@ -484,7 +484,7 @@ export default {
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
},
|
|
},
|
|
- 'pagination.pageSize': function (p) {
|
|
|
|
|
|
+ 'pagination.pageSize': function(p) {
|
|
this.refresh()
|
|
this.refresh()
|
|
},
|
|
},
|
|
|
|
|
|
@@ -710,17 +710,15 @@ export default {
|
|
doAction(action, ...args) {
|
|
doAction(action, ...args) {
|
|
// 调用callback,并处理loading状态
|
|
// 调用callback,并处理loading状态
|
|
this.btnIsLoading = { ...this.btnIsLoading, [action.id]: true }
|
|
this.btnIsLoading = { ...this.btnIsLoading, [action.id]: true }
|
|
- Promise.resolve(action.callback(...args, { loadingStatus: this.btnIsLoading })).finally(
|
|
|
|
- () => {
|
|
|
|
- if (action.label.includes('导出')) {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.btnIsLoading = { ...this.btnIsLoading, [action.id]: false }
|
|
|
|
- }, 3000)
|
|
|
|
- } else {
|
|
|
|
|
|
+ Promise.resolve(action.callback(...args)).finally(() => {
|
|
|
|
+ if (action.label.includes('导出')) {
|
|
|
|
+ setTimeout(() => {
|
|
this.btnIsLoading = { ...this.btnIsLoading, [action.id]: false }
|
|
this.btnIsLoading = { ...this.btnIsLoading, [action.id]: false }
|
|
- }
|
|
|
|
|
|
+ }, 3000)
|
|
|
|
+ } else {
|
|
|
|
+ this.btnIsLoading = { ...this.btnIsLoading, [action.id]: false }
|
|
}
|
|
}
|
|
- )
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 导出Excel
|
|
* 导出Excel
|