zhujindu vor 1 Woche
Ursprung
Commit
9afe40fce2

+ 4 - 4
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' && formData.processStatus != 1">
+      <van-col span="6" style="" v-if="insert && formData.processStatus != 1">
         <div class="addImg">
           <uploadVNormalTaskPhoto
             :imgArr="imgs"
@@ -25,7 +25,7 @@
           <van-icon
             v-if="
               (photoIdentifyType != 6 || photoIdentifyType != 7) &&
-              insert == '1' &&
+              insert &&
               formData.processStatus != 1
             "
             name="close"
@@ -116,8 +116,8 @@ export default {
       default: '',
     },
     insert: {
-      type: String,
-      default: '0',
+      type: Boolean,
+      default: false,
     },
   },
   watch: {

+ 3 - 3
src/views/deviceWithin/taskPhotoTaking.vue

@@ -3,7 +3,7 @@
     <van-nav-bar class="navBar" left-arrow title="生动化陈列" @click-left="onClickLeft">
       <template #right v-if="formData">
         <span
-          v-if="isEdit && insert == '1' && formData.processStatus != 1"
+          v-if="isEdit && insert && formData.processStatus != 1"
           @click="onSubmit"
           style="
             color: white;
@@ -73,7 +73,7 @@
             </div>
             <div class="itemHtml" v-html="item.displayInstructions"></div>
           </div>
-          <div class="itemBottom" v-if="insert == '0'">
+          <div class="itemBottom" v-if="!insert">
             <img
               @click="openDialog(item)"
               :src="
@@ -206,7 +206,7 @@ export default {
       console.log(this.$route.query);
       getCollectionInfosBatch({
         storeCode: this.$route.query.storeCode,
-        insert: this.insert == '1' ? true : false,
+        insert: this.insert,
         id: this.visitsId,
         taskIds: this.taskIds.split(','),
       }).then((res) => {