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,