From 9daf0013123a4827fda9520367ad99a5329cf482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Wed, 15 Mar 2023 19:26:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=AF=BC=E5=87=BAmfa=E9=AA=8C=E8=AF=81=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ListTable/TableAction/ExportDialog.vue | 3 +-- src/components/ListTable/TableAction/RightSide.vue | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ListTable/TableAction/ExportDialog.vue b/src/components/ListTable/TableAction/ExportDialog.vue index 6d22cdfed..47b429bdb 100644 --- a/src/components/ListTable/TableAction/ExportDialog.vue +++ b/src/components/ListTable/TableAction/ExportDialog.vue @@ -159,8 +159,7 @@ export default { }, mounted() { this.$eventBus.$on('showExportDialog', ({ selectedRows, url, name }) => { - // Todo: 没有时间了,只能先这么处理了 - if (url === this.url || url.indexOf(this.url) > -1 || url.indexOf('account') > -1) { + if (url === this.url || url.indexOf(this.url) > -1) { this.showExportDialog() } }) diff --git a/src/components/ListTable/TableAction/RightSide.vue b/src/components/ListTable/TableAction/RightSide.vue index 742d6a734..f4fffa2a4 100644 --- a/src/components/ListTable/TableAction/RightSide.vue +++ b/src/components/ListTable/TableAction/RightSide.vue @@ -37,7 +37,8 @@ export default { handleExportClick: { type: Function, default: function({ selectedRows }) { - this.$eventBus.$emit('showExportDialog', { selectedRows, url: this.tableUrl, name: this.name }) + const option = assignIfNot(this.exportOptions, { url: this.tableUrl }) + this.$eventBus.$emit('showExportDialog', { selectedRows, url: option.url, name: this.name }) } }, hasImport: defaultTrue,