瀏覽代碼

Merge branch 'feature_20260330_拜访连拍速度优化' into uat(dev)

zhujindu 15 小時之前
父節點
當前提交
65b8d3f06a
共有 1 個文件被更改,包括 2 次插入13 次删除
  1. 2 13
      src/views/deviceWithin/taskPhotoTaking.vue

+ 2 - 13
src/views/deviceWithin/taskPhotoTaking.vue

@@ -294,19 +294,9 @@ export default {
         this.taskPhotoRecognitionResult = item.taskPhotoRecognitionResult;
       });
     },
-    waitUploadReady(interval = 1000) {
-      return new Promise((resolve) => {
-        const intervalId = setInterval(() => {
-          const taskPhoto = this.$refs.taskPhoto && this.$refs.taskPhoto[0];
-          if (taskPhoto && taskPhoto.isUploadImg) {
-            clearInterval(intervalId);
-            resolve();
-          }
-        }, interval);
-      });
-    },
     async onSubmit() {
       this.toastLoading(0, '提交中,请稍候...', true);
+      const taskPhoto = this.$refs.taskPhoto && this.$refs.taskPhoto[0];
       let formData = {
         storeId: this.$route.query.storeId,
         storeCode: this.$route.query.storeCode,
@@ -327,7 +317,7 @@ export default {
       };
       if (this.userInfo.photoMethod == '1') {
         formData.mediaInfos = [];
-      } else if (taskPhoto) {
+      } else {
         this.mediaInfos = [];
         this.syncUpload(taskPhoto.imgArr, () => {
           this.toastLoading().clear();
@@ -338,7 +328,6 @@ export default {
     },
     syncUpload(imgArr, callback) {
       if (!imgArr.length) {
-        this.isUploadImg = true;
         callback && callback();
         return;
       } else {