Jelajahi Sumber

任务不显示名称

yuhongqi 2 minggu lalu
induk
melakukan
8c937d7d53
1 mengubah file dengan 7 tambahan dan 2 penghapusan
  1. 7 2
      src/views/live/liveConfig/task.vue

+ 7 - 2
src/views/live/liveConfig/task.vue

@@ -619,7 +619,8 @@ export default {
             // 根据productName和goodsId组装成为label和value
             this.couponOptions.push({
               value: item.id,
-              label: item.title
+              label: item.title,
+              couponId: item.couponId
             })
           })
           this.listParams.pageNum++;
@@ -727,7 +728,11 @@ export default {
         }else if (this.form.taskType == 4) {
           this.form.content = content.lotteryId;
         }else if(this.form.taskType == 5){
-          this.form.content = content.id;
+          this.couponOptions.forEach(item => {
+            if(item.couponId == content.couponId) {
+              this.form.content = item.value;
+            }
+          })
         }else if(this.form.taskType == 6){
           this.form.goodsId = content.goodsId;
           this.form.goodsStatus = content.status;