|
|
|
@ -332,8 +332,10 @@ export default { |
|
|
|
this.$message.error("上传文件大小不能超过 10MB!"); |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.form.importCategory) { |
|
|
|
this.$message.error("请选择导入的类别"); |
|
|
|
if (!this.form.importCategory || !this.form.taskName) { |
|
|
|
this.$message.error("请完善基本信息!"); |
|
|
|
this.dataListLoading = false; |
|
|
|
return false |
|
|
|
} |
|
|
|
return fileType && isLt1M; |
|
|
|
}, |
|
|
|
@ -350,6 +352,7 @@ export default { |
|
|
|
this.checkExtractExcelHead(); |
|
|
|
} else { |
|
|
|
this.$message.error(res.data.msg); |
|
|
|
this.dataListLoading = false; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
|