fix:添加导出html的按钮

This commit is contained in:
zhangyu
2022-05-27 09:29:59 +08:00
parent c525634e58
commit 9781bf619c
3 changed files with 22 additions and 13 deletions

View File

@@ -500,19 +500,19 @@ export default {
this.importBox.width = '600px'
} else if (type == 2) { // export
this.importBox.title = this.$t('overall.exportExcel')
this.importBox.width = this.exportBoxShow ? '850px' : '580px'
if (this.exportBoxShow) {
this.formatArr = [
{ name: 'XLSX', value: 1 },
{ name: 'CSV', value: 2 },
{ name: 'JSON', value: 3 },
{ name: 'PDF', value: 4 },
{ name: 'Html', value: 5 }]
} else {
this.formatArr = [{ name: 'XLSX', value: 1 },
{ name: 'CSV', value: 2 },
{ name: 'JSON', value: 3 }]
}
this.importBox.width = '580px'
// if (this.exportBoxShow) {
// this.formatArr = [
// { name: 'XLSX', value: 1 },
// { name: 'CSV', value: 2 },
// { name: 'JSON', value: 3 },
// { name: 'PDF', value: 4 },
// { name: 'Html', value: 5 }]
// } else {
// this.formatArr = [{ name: 'XLSX', value: 1 },
// { name: 'CSV', value: 2 },
// { name: 'JSON', value: 3 }]
// }
}
},
getTimeString () {