|
|
@@ -17,7 +17,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="抽奖状态" prop="require">
|
|
|
- <el-select v-model="queryParams.lottery_status" placeholder="请输入参与抽奖方式">
|
|
|
+ <el-select v-model="queryParams.lotteryStatus" placeholder="请输入参与抽奖方式">
|
|
|
<el-option v-for="(item,index) in lotteryStatusOptions" :key="item.dictValue+index" :label="item.dictLabel" :value="item.dictValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -179,9 +179,9 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="方式配置" prop="requireConf">
|
|
|
<el-input v-model="form.requireConf" placeholder="请输入参与抽奖方式" />
|
|
|
- <span style="font-size: 10px; font-family: Arial,serif">当参与方式选择为“送礼参与”或“下单参与”时,此处填写商品ID及数量</span>
|
|
|
+ <span style="margin-bottom:10px;font-size: 10px; font-family: Arial,serif">当参与方式选择为“送礼参与”或“下单参与”时,此处填写商品ID及数量</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="持续时间" prop="duration">
|
|
|
+ <el-form-item label="持续时间" prop="duration" style="margin-top: 50px;">
|
|
|
<el-input v-model="form.duration" placeholder="请输入持续时间 单位:分" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="抽奖标题" prop="desc">
|
|
|
@@ -394,7 +394,7 @@ export default {
|
|
|
require: null,
|
|
|
desc: null,
|
|
|
createTime: null,
|
|
|
- lottery_status: null
|
|
|
+ lotteryStatus: null
|
|
|
},
|
|
|
//商品信息列表
|
|
|
productList: [],
|
|
|
@@ -459,7 +459,7 @@ export default {
|
|
|
this.lotteryStatusOptions = response.data;
|
|
|
});
|
|
|
|
|
|
- this.liveId = this.$route.params.liveId;
|
|
|
+ this.liveId = this.$route.query.liveId;
|
|
|
this.parentLiveId = this.liveId;
|
|
|
this.queryParams.liveId = this.parentLiveId;
|
|
|
if(this.queryParams.liveId){
|
|
|
@@ -658,7 +658,7 @@ export default {
|
|
|
},
|
|
|
/** 抽奖状态修改 */
|
|
|
handleStatusChange(row, status) {
|
|
|
- if (this.$store.state.liveWs == null) {
|
|
|
+ if (this.$store.state.liveWs[this.liveId] == null) {
|
|
|
this.msgError("请从直播间进行操作!");
|
|
|
return;
|
|
|
}
|
|
|
@@ -698,7 +698,7 @@ export default {
|
|
|
};
|
|
|
updateLiveLotteryConf(doLotteryParam).then(response => {
|
|
|
if(response.code === 200){
|
|
|
- this.$store.state.liveWs.sendWs("lottery",response.msg, row.lotteryId,this.liveId);
|
|
|
+ this.$store.state.liveWs[this.liveId].sendWs("lottery",response.msg, row.lotteryId,this.liveId);
|
|
|
this.msgSuccess("修改成功");
|
|
|
}else{
|
|
|
this.msgError(response.msg);
|