Przeglądaj źródła

feature_20260330_拜访连拍速度优化

zhujindu 2 tygodni temu
rodzic
commit
14f560f5ca

+ 21 - 19
src/components/deleteUploadImgTaskPhoto.vue

@@ -99,26 +99,28 @@ export default {
       type: String,
       default: '0',
     },
+    fileInfoList: {
+      type: Array,
+      default() {
+        return [];
+      },
+    },
+  },
+  watch: {
+    fileInfoList: {
+      handler(val) {
+        this.imgArr = [];
+        // <!-- 0=企业微信,1=H5相机 -->
+        if (val) {
+          if (this.userInfo.photoMethod == '1') {
+            this.imgArr = val || [];
+          }
+        }
+      },
+      deep: true,
+      immediate: true,
+    },
   },
-  // watch: {
-  //   formData: {
-  //     handler(val) {
-  //       this.imgArr = [];
-  //       // <!-- 0=企业微信,1=H5相机 -->
-  //       if (val) {
-  //         if (this.userInfo.photoMethod == '1') {
-  //           this.imgArr = val.collectionItemList[0].fileInfoList || [];
-  //         } else {
-  //           if (val.mediaInfos) {
-  //             this.getLocalImgData(val.mediaInfos);
-  //           }
-  //         }
-  //       }
-  //     },
-  //     deep: true,
-  //     immediate: true,
-  //   },
-  // },
   created() {
     // 授权
     getTicketFun(['downloadImage']).then(() => {

+ 1 - 0
src/views/deviceWithin/taskPhotoTaking.vue

@@ -54,6 +54,7 @@
                 :pictureSource="item.pictureSource"
                 :continuousShoot="item.continuousShoot"
                 :insert="insert"
+                :fileInfoList="item.fileInfoList"
                 :objectType="objectType"></deleteUploadImgTaskPhoto>
             </div>
           </div>