[update 88390] 拆分详情-导入限制20MB

This commit is contained in:
danshihao
2024-08-12 10:16:36 +08:00
parent a989173fc4
commit c68c48b34d
4 changed files with 10 additions and 0 deletions
+6
View File
@@ -267,6 +267,12 @@ export const ConfigurableTableMixin = {
},
/* 导入 */
handleImportExcel (info) {
// 限制导入大于 importMaxSize, 各个模块可以单独设置大小
if (this.importMaxSize && info.file.size > 1024 * 1024 * this.importMaxSize) {
this.$message.error(this.$t('importMaxMsg', { size: this.importMaxSize }))
info.fileList.pop()
return
}
// 限制导入大于500MB
if (info.file.size > 1024 * 1024 * 500) {
this.$message.error('导入文件最大500MB')