Sfoglia il codice sorgente

feature_20260330_拜访连拍速度优化

zhujindu 2 settimane fa
parent
commit
26468de274
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 3
      src/components/deleteUploadImgTaskPhoto.vue

+ 7 - 3
src/components/deleteUploadImgTaskPhoto.vue

@@ -21,7 +21,11 @@
       </van-col>
       <van-col span="6" v-for="(urls, index) in imgArr" :key="index">
         <div class="imgview">
-          <van-icon v-if="insert == '1'" name="close" size="16" v-on:click="deleteImg(index)" />
+          <van-icon
+            v-if="insert == '1'"
+            name="close"
+            size="16"
+            v-on:click="deleteImg(index, urls)" />
           <img :src="urls.fileUrl" width="100px" height="100px" @click="previewsImg(index)" />
           <!-- <img
             v-else
@@ -164,10 +168,10 @@ export default {
         });
       }
     },
-    deleteImg(index, fileIdList) {
+    deleteImg(index, urls) {
       // <!-- 0=企业微信,1=H5相机 -->
       if (this.userInfo.photoMethod == '1') {
-        removePhotoBatch({ fileIdList: fileIdList.split(',') }).then((res) => {
+        removePhotoBatch({ fileIdList: urls.fileIdSplicing.split(',') }).then((res) => {
           if (res.code == 200) {
             this.$toast('删除成功!');
             this.$emit('upDataDetail');