修复:批量开课上传数据错误一直loading
This commit is contained in:
@@ -267,15 +267,16 @@
|
||||
file: this.dataForm.file
|
||||
})
|
||||
}).then(({ data }) => {
|
||||
this.dataListLoading = false;
|
||||
if (data && data.code === 0) {
|
||||
if(data.result&&data.result.has.length>0){
|
||||
this.resultStatus = true;
|
||||
this.resultData = data.result;
|
||||
this.dataListLoading = false;
|
||||
} else {
|
||||
this.$message.warning(`没有有效的数据,请检查核对文件模板和数据后重新上传`);
|
||||
}
|
||||
}else{
|
||||
this.$message.error('文件解析有误');
|
||||
this.dataListLoading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user