修改已知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' }
}, },
@@ -187,6 +189,7 @@
}, },
methods: { methods: {
callback(tab) { callback(tab) {
this.selectedRowKeys = []
this.activeTab = tab this.activeTab = tab
this.getList() this.getList()
}, },
@@ -203,6 +206,7 @@
} }
}, },
handleExport() { handleExport() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let text = '' let text = ''
let flag let flag
@@ -219,6 +223,9 @@
flag: flag flag: flag
} }
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect) downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
}, },
Deselect() { Deselect() {
this.selectedRowKeys = [] this.selectedRowKeys = []