Quellcode durchsuchen

修复格式转换的逻辑

liyangbin vor 2 Jahren
Ursprung
Commit
a72b0f54ba
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 7 0
      pages/converter.vue

+ 7 - 0
pages/converter.vue

@@ -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++;