فهرست منبع

feature_20260425_完美门店陈列奖励案图片上传方式修改

zhujindu 16 ساعت پیش
والد
کامیت
256e81a22e
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/deviceWithin/taskPhotoTaking.vue

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

@@ -164,6 +164,9 @@ export default {
     };
     };
   },
   },
   activated() {
   activated() {
+    if (this.formData && this.formData.collectionItemList && this.formData.collectionItemList[0]) {
+      this.formData.collectionItemList[0].fileInfoList = [];
+    }
     this.taskIds = this.$route.query.taskIds || [];
     this.taskIds = this.$route.query.taskIds || [];
     this.visitsId = this.$route.query.visitsId || '';
     this.visitsId = this.$route.query.visitsId || '';
     this.storeGroupId = this.$route.query.storeGroupId || '';
     this.storeGroupId = this.$route.query.storeGroupId || '';
@@ -337,9 +340,6 @@ export default {
         this.toastLoading().clear();
         this.toastLoading().clear();
         if (res.code == 200) {
         if (res.code == 200) {
           localStorage.setItem('getRequestFlage', 'true');
           localStorage.setItem('getRequestFlage', 'true');
-          if (this.formData && this.formData[0]) {
-            this.formData[0].fileInfoList = [];
-          }
           this.$router.go(-1);
           this.$router.go(-1);
         } else {
         } else {
           this.$toast('提交失败,请重试');
           this.$toast('提交失败,请重试');