瀏覽代碼

任务不显示名称

yuhongqi 2 周之前
父節點
當前提交
a0033d5079
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/live/liveConfig/task.vue

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

@@ -634,7 +634,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++;
@@ -742,7 +743,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;