Commit 7ea99431 authored by 季圣华's avatar 季圣华
Browse files

优化excel导入提示的样式

parent f5ec0c47
...@@ -311,6 +311,7 @@ export const JeecgListMixin = { ...@@ -311,6 +311,7 @@ export const JeecgListMixin = {
}, },
/* 导入 */ /* 导入 */
handleImportExcel(info){ handleImportExcel(info){
this.loading = true
if (info.file.status !== 'uploading') { if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList); console.log(info.file, info.fileList);
} }
...@@ -323,11 +324,14 @@ export const JeecgListMixin = { ...@@ -323,11 +324,14 @@ export const JeecgListMixin = {
this.$message.warning(info.file.response.data) this.$message.warning(info.file.response.data)
} }
this.loadData() this.loadData()
this.loading = false
} else { } else {
this.$message.error(`${info.file.name} ${info.file.response.data}.`); this.$message.error(`${info.file.name} ${info.file.response.data}.`);
this.loading = false
} }
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
this.$message.error(`文件上传失败: ${info.file.msg} `); this.$message.error(`文件上传失败: ${info.file.msg} `)
this.loading = false
} }
}, },
/* 图片预览 */ /* 图片预览 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment