From 5c1f32e0f84d2b5c612db8128b081ccb6355aa97 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 28 Jul 2022 16:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=B3=95=E8=A7=84=E6=9C=88?= =?UTF-8?q?=E6=8A=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/RegulationMonthlyFill.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue index 5a312fa44..ca1b2926e 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/RegulationMonthlyFill.vue @@ -94,7 +94,8 @@ //url传参严格按照当前命名 url: { deleteBatch: '/report/lawsMonthlyReportWriteEO/deleteBatch', - list:'/report/lawsMonthlyReportWriteEO/page', + list: '/report/lawsMonthlyReportWriteEO/page', + exportData: '/report/lawsMonthlyReportWriteEO/exportMonthlyReport' }, loading: false, dataSource: [], @@ -161,7 +162,7 @@ methods: { dateChange(item) { this.queryParam[item.db_field_name] = this.queryParam[item.db_field_name] ? moment(this.queryParam[item.db_field_name]).format('YYYY-MM') : '' - this.queryParam = {...this.queryParam} + this.queryParam = { ...this.queryParam } }, searchQuery() { this.pageNo = 1 @@ -170,7 +171,7 @@ searchReset() { this.queryParam = {} this.queryParam.month = moment(new Date()).format('YYYY-MM') - this.queryParam = {...this.queryParam} + this.queryParam = { ...this.queryParam } this.pageNo = 1 this.getList() }, @@ -219,7 +220,15 @@ this.$refs.fillTableRef.getData() }, monthlyIntegrationAndExportClick() { - + let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) + let query = { + ids: selectedRowKeys.join(','), + ...this.queryParam + } + downloadFile(this.url.exportData, this.$t('monthlyReportRegulations') + '.zip', query, this.Deselect) + }, + Deselect() { + this.selectedRowKeys = [] }, addContentClick() { this.$refs.fillAddRef.add() @@ -323,6 +332,7 @@ height: 38px; /*margin-top: 2px;*/ } + .text-operation { margin-right: 8px; }