|
|
@ -653,7 +653,7 @@ export default { |
|
|
|
if (!form.name) return util.warningMsg("请填写竞赛名称"); |
|
|
|
if (!form.name) return util.warningMsg("请填写竞赛名称"); |
|
|
|
// 下一步需要校验 |
|
|
|
// 下一步需要校验 |
|
|
|
if (next === 2) { |
|
|
|
if (next === 2) { |
|
|
|
if (form.competitionScope == 2 && !form.competitionRangeList.length) return util.warningMsg('请选择区域、院校') |
|
|
|
if (form.competitionScope == 2 && (!form.competitionRangeList || !form.competitionRangeList.length)) return util.warningMsg('请选择区域、院校') |
|
|
|
if (!form.sponsor) return util.warningMsg("请填写主办方"); |
|
|
|
if (!form.sponsor) return util.warningMsg("请填写主办方"); |
|
|
|
if (!form.signUpStartTime) return util.warningMsg("请选择报名时间"); |
|
|
|
if (!form.signUpStartTime) return util.warningMsg("请选择报名时间"); |
|
|
|
let now = new Date().getTime(); |
|
|
|
let now = new Date().getTime(); |
|
|
@ -677,9 +677,12 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if (isNeedCode && (!invitationCode || invitationCode.length !== 4)) return util.warningMsg('请填写四位数邀请码') |
|
|
|
if (isNeedCode && (!invitationCode || invitationCode.length !== 4)) return util.warningMsg('请填写四位数邀请码') |
|
|
|
if (!form.description) return util.warningMsg("请填写竞赛详情"); |
|
|
|
if (!form.description) return util.warningMsg("请填写竞赛详情"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if (form.competitionScope == 2 && (!form.competitionRangeList || !form.competitionRangeList.length)) form.competitionScope = 1 |
|
|
|
} |
|
|
|
} |
|
|
|
this.$parent.showLoad() |
|
|
|
this.$parent.showLoad() |
|
|
|
form.publishStatus = status |
|
|
|
delete form.publishStatus |
|
|
|
|
|
|
|
if (status === 1) form.publishStatus = 1 |
|
|
|
form.ztOpen = status ? 0 : 1 // 保存则禁用,发布则启用 |
|
|
|
form.ztOpen = status ? 0 : 1 // 保存则禁用,发布则启用 |
|
|
|
form.releaseType = releaseType |
|
|
|
form.releaseType = releaseType |
|
|
|
form.id = this.$route.query.id |
|
|
|
form.id = this.$route.query.id |
|
|
|