提交 2cb9f256 编写于 作者: changdi.hao's avatar changdi.hao

fixed loading

上级 1d0c0496
......@@ -648,11 +648,15 @@ export default {
},
// 机构匹配确认导入
confirmMateImport() {
if (!this.mateFileData.file) {
this.$message.error('请确认您上传的文件');
return
}
this.isLoading = true;
uploadMateExcel(this.mateFileData.file).then(res => {
this.isLoading = false;
if (res.code == '000000') {
if (res.data) {
this.isLoading = false;
this.cancelMateImport();
let a = document.createElement('a');
let href = res.data;
......@@ -663,11 +667,9 @@ export default {
type: 'success'
});
} else {
this.isLoading = false;
this.$message.error(res.message);
}
} else {
this.isLoading = false;
this.$message.error(res.message);
}
}).catch(error => {
......@@ -693,8 +695,13 @@ export default {
},
// 批量屏蔽确认导入
confirmBatchImport() {
if (!this.batchFileData.file) {
this.$message.error('请确认您上传的文件');
return
}
this.isLoading = true;
uploadBatchExcel(this.batchFileData.file).then(res => {
this.isLoading = false;
if (res.code == '000000') {
this.cancelBatchImport();
this.$message({
......@@ -703,7 +710,6 @@ export default {
});
this.searchList();
} else {
this.isLoading = false;
this.$message.error(res.message);
}
}).catch(error => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册