Browse Source

feat: 完善三级联动数据

Damon 11 months ago
parent
commit
1cc8841222
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/views/operation/activity/detail.vue

+ 3 - 5
src/views/operation/activity/detail.vue

@@ -27,6 +27,7 @@
         </el-select>
         </el-select>
       </el-form-item>
       </el-form-item>
 
 
+      <!-- prop="pic" -->
       <el-form-item label="活动图片:" prop="pic">
       <el-form-item label="活动图片:" prop="pic">
         <Upload listType="picture-card" :url="form.pic" @upload="upload" />
         <Upload listType="picture-card" :url="form.pic" @upload="upload" />
       </el-form-item>
       </el-form-item>
@@ -266,6 +267,7 @@ export default {
             this.form.deviceRespList[i].deviceId = null;
             this.form.deviceRespList[i].deviceId = null;
           }
           }
         }
         }
+        this.form.platformId = val == this.platformNames[1] ? 1 : 0;
       },
       },
       deep: true,
       deep: true,
     },
     },
@@ -277,6 +279,7 @@ export default {
     //   deep: true,
     //   deep: true,
     // },
     // },
   },
   },
+
   mounted() {
   mounted() {
     this.getDevList();
     this.getDevList();
     if (this.$route.query.id) {
     if (this.$route.query.id) {
@@ -297,11 +300,6 @@ export default {
         if (res.code === 0) {
         if (res.code === 0) {
           this.aaaa[`${deviceId}`] = res.data;
           this.aaaa[`${deviceId}`] = res.data;
           this.form.deviceRespList = this.form.deviceRespList.filter((i) => i);
           this.form.deviceRespList = this.form.deviceRespList.filter((i) => i);
-          console.log(
-            "gasdfasdfasdfaf==啊啊啊啊=11=" + JSON.stringify(this.aaaa)
-          );
-
-          ///goodId  goodName
         }
         }
       });
       });
     },
     },