浏览代码

1. 优化

MONSTER-ygh 1 月之前
父节点
当前提交
a3f1437e23
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/otaMr/ctrip/dialog/dataEdit.vue

+ 5 - 2
src/views/otaMr/ctrip/dialog/dataEdit.vue

@@ -30,7 +30,7 @@
       @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column label="序号" align="center" type="index" width="50"></el-table-column>
-        <el-table-column label="票务价格ID" align="center" prop="performId" />
+        <el-table-column label="票务价格ID" align="center" prop="id" />
         <el-table-column label="票务名称" align="center" prop="priceName" />
         <el-table-column label="场次开始时间" align="center" prop="timeStart" />
         <el-table-column label="场次结束时间" align="center" prop="timeEnd" />
@@ -183,6 +183,7 @@ export default {
         costAmount: [{ required: true, message: "请输入结算价", trigger: ["change","blur"] }],
       },
       seatTypeId: null,
+      calendarId: null,
     };
   },
   methods: {
@@ -471,12 +472,14 @@ export default {
     },
     openCalendarFun(row){
       this.seatTypeId = row.seatTypeId
+      this.calendarId = row.id
       this.getCalendarPrice()
       
     },
     /**  获取设置的日历价格  */
     async getCalendarPrice() {
       try {
+        this.timeValueObj = {}
         let res = await getCalendarPriceApi({
           "goodsId": this.form.goodsId,
           "seatTypeId": this.seatTypeId
@@ -539,7 +542,7 @@ export default {
             })
           })
           let res = await setCalendarPriceApi({
-            "id": this.form.id,
+            "id": this.calendarId,
             "goodsId": this.form.goodsId,
             "seatTypeId": this.seatTypeId,
             "data": daysList