Kaynağa Gözat

feature_20260330_拜访连拍速度优化

zhujindu 3 gün önce
ebeveyn
işleme
7e1b4a9efe
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      src/components/deleteUploadImgTaskPhoto.vue

+ 5 - 5
src/components/deleteUploadImgTaskPhoto.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="deleteUploadImgTaskPhoto">
     <van-row gutter="10">
-      <van-col span="6" style="" v-if="insert == '1'">
+      <van-col span="6" style="" v-if="insert == 'true' && formData.processStatus != 1">
         <div class="addImg">
           <uploadVNormalTaskPhoto
             :shouws="true"
@@ -22,7 +22,7 @@
       <van-col span="6" v-for="(urls, index) in imgArr" :key="index">
         <div class="imgview">
           <van-icon
-            v-if="insert == '1'"
+            v-if="insert == 'true' && formData.processStatus != 1"
             name="close"
             size="16"
             v-on:click="deleteImg(index, urls)" />
@@ -105,7 +105,7 @@ export default {
     },
     insert: {
       type: String,
-      default: '0',
+      default: 'false',
     },
     fileInfoList: {
       type: Array,
@@ -152,7 +152,7 @@ export default {
         let mediaitem = mediaInfos.pop();
         if (mediaitem.fileUrl) {
           this.imgArr.push(mediaitem);
-          return;
+          this.downloadImage(mediaInfos);
         } else {
           wx.downloadImage({
             serverId: mediaitem.mediaId,
@@ -201,7 +201,7 @@ export default {
       }
     },
     previewsImg(index) {
-      let urls = this.imgArr.map((item) => item.fileUrl);
+      let urls = this.imgArr.map((item) => item.fileUrl || item.mediaFileUrl);
       ImagePreview({
         images: urls,
         startPosition: index,