修改已知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>
</div>
</a-col>
<a-col :span="12" style="text-align: right">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
@@ -292,15 +292,15 @@
rules: {
titleCn: [
{
max: 100,
message: this.$t('title') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
max: 500,
message: this.$t('title') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
trigger: 'blur'
}
],
titleEn: [
{
max: 100,
message: this.$t('englishTitle') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
max: 500,
message: this.$t('englishTitle') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
trigger: 'blur'
}
],
@@ -100,6 +100,7 @@
title: this.$t('standard'),
align: 'center',
dataIndex: 'serial_number',
ellipsis: true,
width: 170,
scopedSlots: { customRender: 'serial_number' }
},
@@ -107,6 +108,7 @@
title: this.$t('title'),
align: 'center',
dataIndex: 'title',
ellipsis: true,
width: 170,
scopedSlots: { customRender: 'titleName' }
},
@@ -182,11 +184,12 @@
this.getList()
})
},
beforeDestroy(){
beforeDestroy() {
eventBUs.$off('searchQuery')
},
methods: {
callback(tab) {
this.selectedRowKeys = []
this.activeTab = tab
this.getList()
},
@@ -203,22 +206,26 @@
}
},
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')
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
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)
} else {
text = this.$t('vehicleInProductionDate')
flag = 1
this.$message.warning(this.$t('selectLeastOne'))
}
let query = {
id: selectedRowKeys.join(','),
...this.searchParmes,
flag: flag
}
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
},
Deselect() {
this.selectedRowKeys = []
@@ -298,7 +305,7 @@
this.pageNo = page
this.getList()
},
SizeChange(page,pageSize) {
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.getList()