[update 拆分编辑] 导出防止文件名过长打不开

This commit is contained in:
danshihao
2024-08-15 09:21:58 +08:00
parent 8534ffc3e0
commit 4a5dc999b1
@@ -614,7 +614,8 @@ export default {
* 导出
*/
handleExportXls () {
const fileName = this.$route.query.infoNumber + ' ' + this.$route.query.standardName
// 防止文件名长度导致文件打不开
const fileName = (this.$route.query.infoNumber + ' ' + this.$route.query.standardName).slice(0, 50)
const fileSuffix = '.zip'
const param = {}
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {