|
@@ -704,6 +704,8 @@ export default {
|
|
|
// 转档第二步,上传文件download="${item.name}"
|
|
|
uploadFile(file, id, missionId) {
|
|
|
this.uploadNum = 0;
|
|
|
+ this.uploadSuccessNum = 0
|
|
|
+ this.uploadErrNum = 0
|
|
|
const formData = new FormData();
|
|
|
formData.append("file", file);
|
|
|
formData.append("missionFileId", id);
|
|
@@ -720,6 +722,11 @@ export default {
|
|
|
if (this.uploadNum === this.uniqFileArr.length) {
|
|
|
this.convertFile(file.name, missionId);
|
|
|
}
|
|
|
+ let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
|
|
|
+ if(uploadAllNum === this.uniqFileArr.length && this.uploadErrNum > 0){
|
|
|
+ this.changeFileFlag = true;
|
|
|
+ this.changeFileStatus("all", 5);
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
this.uploadErrNum++;
|