对接法规预警的导出

This commit is contained in:
qq787203167
2022-06-28 17:21:07 +08:00
parent 93f6779a36
commit de94b78395
@@ -75,6 +75,7 @@
url: {
seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段
list: '/LawsWarn/queryPageInfo',
exportData: 'LawsWarn/exportExcel',
pullMessage: ''
},
activeTab: this.$t('ImplementationDate'),
@@ -198,7 +199,25 @@
}
},
handleExport() {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let text = ''
let flag
if (this.activeTab == this.$t('ImplementationDate')) {
flag = 0
text = this.$t('ImplementationDate')
} else {
text = this.$t('vehicleInProductionDate')
flag = 1
}
let query = {
id: selectedRowKeys.join(','),
...this.searchParmes,
flag: flag
}
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
},
Deselect() {
this.selectedRowKeys = []
},
clearSelected() {
let startTime = moment(new Date()).format('YYYY-MM-DD')