[update] Jero混入导入错误提示修改

This commit is contained in:
lideqin
2023-11-10 15:08:45 +08:00
parent 5809ca95dd
commit d66d8c1610
+4
View File
@@ -430,9 +430,13 @@ export const JeroListMixin = {
this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`) this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
} }
this.loadData() this.loadData()
} else {
if (Array.isArray(info.file.response.result) && info.file.response.result.length > 0) {
this.messageLineFeed(this.$t('fileImportError'), info.file.response.result)
} else { } else {
this.$message.warning(`${info.file.name} ${info.file.response.message}.`) this.$message.warning(`${info.file.name} ${info.file.response.message}.`)
} }
}
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
// 销毁这个提示 // 销毁这个提示
importModalLoading && importModalLoading.destroy() importModalLoading && importModalLoading.destroy()