对接法规月报导出

This commit is contained in:
qq787203167
2022-07-28 16:09:06 +08:00
parent 7d42c270a7
commit 5c1f32e0f8
@@ -95,6 +95,7 @@
url: { url: {
deleteBatch: '/report/lawsMonthlyReportWriteEO/deleteBatch', deleteBatch: '/report/lawsMonthlyReportWriteEO/deleteBatch',
list: '/report/lawsMonthlyReportWriteEO/page', list: '/report/lawsMonthlyReportWriteEO/page',
exportData: '/report/lawsMonthlyReportWriteEO/exportMonthlyReport'
}, },
loading: false, loading: false,
dataSource: [], dataSource: [],
@@ -219,7 +220,15 @@
this.$refs.fillTableRef.getData() this.$refs.fillTableRef.getData()
}, },
monthlyIntegrationAndExportClick() { 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() { addContentClick() {
this.$refs.fillAddRef.add() this.$refs.fillAddRef.add()
@@ -323,6 +332,7 @@
height: 38px; height: 38px;
/*margin-top: 2px;*/ /*margin-top: 2px;*/
} }
.text-operation { .text-operation {
margin-right: 8px; margin-right: 8px;
} }