修改已知bug

This commit is contained in:
qq787203167
2022-08-05 17:45:51 +08:00
parent 93a5b35be6
commit df7571b7d6
2 changed files with 28 additions and 21 deletions
@@ -15,7 +15,7 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12" style="text-align: right"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" <span class="title-text-text"
@@ -292,15 +292,15 @@
rules: { rules: {
titleCn: [ titleCn: [
{ {
max: 100, max: 500,
message: this.$t('title') + this.$t('cannotExceed') + 100 + this.$t('Characters'), message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
} }
], ],
titleEn: [ titleEn: [
{ {
max: 100, max: 500,
message: this.$t('englishTitle') + this.$t('cannotExceed') + 100 + this.$t('Characters'), message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
} }
], ],
@@ -100,6 +100,7 @@
title: this.$t('standard'), title: this.$t('standard'),
align: 'center', align: 'center',
dataIndex: 'serial_number', dataIndex: 'serial_number',
ellipsis: true,
width: 170, width: 170,
scopedSlots: { customRender: 'serial_number' } scopedSlots: { customRender: 'serial_number' }
}, },
@@ -107,6 +108,7 @@
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true,
width: 170, width: 170,
scopedSlots: { customRender: 'titleName' } scopedSlots: { customRender: 'titleName' }
}, },
@@ -182,11 +184,12 @@
this.getList() this.getList()
}) })
}, },
beforeDestroy(){ beforeDestroy() {
eventBUs.$off('searchQuery') eventBUs.$off('searchQuery')
}, },
methods: { methods: {
callback(tab) { callback(tab) {
this.selectedRowKeys = []
this.activeTab = tab this.activeTab = tab
this.getList() this.getList()
}, },
@@ -203,22 +206,26 @@
} }
}, },
handleExport() { handleExport() {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let text = '' let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let flag let text = ''
if (this.activeTab == this.$t('ImplementationDate')) { let flag
flag = 0 if (this.activeTab == this.$t('ImplementationDate')) {
text = 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)
} else { } else {
text = this.$t('vehicleInProductionDate') this.$message.warning(this.$t('selectLeastOne'))
flag = 1
} }
let query = {
id: selectedRowKeys.join(','),
...this.searchParmes,
flag: flag
}
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
}, },
Deselect() { Deselect() {
this.selectedRowKeys = [] this.selectedRowKeys = []
@@ -298,7 +305,7 @@
this.pageNo = page this.pageNo = page
this.getList() this.getList()
}, },
SizeChange(page,pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1 this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.getList() this.getList()