浏览代码

update:活动管理

ct 1 周之前
父节点
当前提交
68362da7fe
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/views/his/storeActivity/index.vue

+ 7 - 3
src/views/his/storeActivity/index.vue

@@ -120,7 +120,7 @@
         <el-form-item label="BANNER图" prop="images">
           <Material v-model="photoArr" type="image" :num="10" :width="150" :height="150" />
         </el-form-item>
-        <el-form-item label="活动疗法" prop="packageIds"  >
+        <el-form-item label="活动疗法" prop="productIds"  >
               <el-row  >
                 <el-col >
                       <el-button plain  type="primary" icon="el-icon-plus" @click="handleAddPackage">添加疗法</el-button>
@@ -242,7 +242,7 @@ export default {
         descs: null,
         logoUrl: null,
         images: null,
-        packageIds: null,
+        productIds: null,
         content: null,
         status: null
       },
@@ -307,6 +307,7 @@ export default {
         logoUrl: null,
         images: null,
         packageIds: null,
+        productIds: null,
         content: null,
         createTime: null,
         status: "1"
@@ -377,7 +378,10 @@ export default {
             this.packages.forEach(element => {
               packageIds.push(element.packageId);
             });
-            this.form.packageIds=packageIds.toString();
+            // this.form.packageIds=packageIds.toString();
+            this.form.productIds = packageIds.toString();
+          } else {
+            this.form.productIds = "";
           }
           if (this.form.activityId != null) {
             updateStoreActivity(this.form).then(response => {