This commit is contained in:
sjl
2026-02-06 10:10:24 +08:00
parent 59489aaafa
commit 15e3d4aec8
12 changed files with 555 additions and 29 deletions

View File

@@ -129,11 +129,12 @@ export default class TableStore {
* @param data 携带数据
*/
onTableAction = (event: string, data: anyObj) => {
const actionFun = new Map([
[
'search',
() => {
this.table.params.pageNum = 1
this.index()
}
@@ -201,9 +202,10 @@ export default class TableStore {
[
'export',
() => {
this.table.exportLoading = true
// this.index()
//console.log('export')
let params = { ...this.table.params, pageNum: 1, pageSize: this.table.total }
createAxios(
Object.assign(
@@ -219,7 +221,7 @@ export default class TableStore {
this.table.exportProcessingData && this.table.exportProcessingData()
this.table.allFlag = data.showAllFlag || true
this.table.exportLoading = false
})
.catch(() => {
this.table.exportLoading = false