对接法规预警的导出
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user