Commit 5c12e612 authored by leiqingsong's avatar leiqingsong

轮盘创建表单限制

parent d82afe19
......@@ -514,7 +514,29 @@ export default {
this.$toast('请完整填写表单!');
return;
}
this.prizeList.forEach(item => {
if (item.type == "") {
this.$toast('奖项类型必选!');
return;
}
if (item.type == 1) {
if (item.name == '' ||
item.checked_coupon == {} ||
item.total_limit == '' ||
item.limit == '' ||
item.preLimit == '' ||
item.probability == ''
) {
this.$toast('请填写完整奖项设置!');
return;
}
} else {
if(item.probability === '') {
this.$toast('奖项概率不允许为空');
return;
}
}
})
if (
new Date(this.basicInfo.startTime1) >= new Date(this.basicInfo.endTime1)
) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment