From f11436fc6242cae29b60c4be51c2a2eafd674eb7 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Fri, 8 Oct 2021 14:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E5=87=BA=E5=90=88=E5=90=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BC=81=E4=B8=9A=E3=80=81=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAinput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkingGroupProjectDataMaintenance.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue b/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue index ed842e0..a94dd19 100644 --- a/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue +++ b/src/views/projectManagement/WorkingGroupProjectDataMaintenance.vue @@ -87,6 +87,7 @@ import { JeroListMixin } from '../../mixins/JeroListMixin' import PageHeaderTitle from '../../components/layouts/PageHeaderTitle' import WorkGroupFileUploadModal from './modules/WorkGroupFileUploadModal' import WorkGroupDistributeModule from './modules/WorkGroupDistributeModule' +import { downloadFile } from '../../api/manage' export default { name: 'WorkingGroupProjectDataMaintenance', @@ -195,7 +196,18 @@ export default { this.dataId = id this.distributeModalVisible = true this.isBatchDistribute = false - } + }, + handleExportXls(fileName) { + if (!fileName || typeof fileName != 'string') { + fileName = '导出文件' + } + let param = this.getQueryParams() + if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { + param['selections'] = this.selectedRowKeys.join(',') + } + console.log('导出参数', param) + downloadFile(this.url.exportXlsUrl, fileName + '.zip', param) + }, } }