diff --git a/src/pages/match/add/step1.vue b/src/pages/match/add/step1.vue index fa18321..a148f68 100644 --- a/src/pages/match/add/step1.vue +++ b/src/pages/match/add/step1.vue @@ -696,7 +696,7 @@ export default { this.$parent.showLoad() delete form.publishStatus if (status === 1) form.publishStatus = 1 - form.ztOpen = status ? 0 : 1 // 保存则禁用,发布则启用 + form.isOpen = status ? 0 : 1 // 保存则禁用,发布则启用 form.releaseType = releaseType form.id = this.$route.query.id diff --git a/src/pages/match/add/step2.vue b/src/pages/match/add/step2.vue index 48ea3dc..0daf10b 100644 --- a/src/pages/match/add/step2.vue +++ b/src/pages/match/add/step2.vue @@ -39,11 +39,9 @@ class="tips"> (团队赛是否限制队内每个成员只能参加一个阶段赛项? + :label="1">是 + :label="0">否 ) @@ -89,7 +87,7 @@ 人 + :disabled="item.teamNumLimitOpt === 0"> 人 (可限制本阶段单个团队的出战人数)
', score: '', - teamNumLimit: 1, - teamNumLimitOpt: 1, + teamNumLimit: '', + teamNumLimitOpt: 0, resultAnnouncementTime: '', resultsDetails: '', }, @@ -262,8 +260,8 @@ export default { scoreLimit: '', operator: '>', score: '', - teamNumLimit: 1, - teamNumLimitOpt: 1, + teamNumLimit: '', + teamNumLimitOpt: 0, resultAnnouncementTime: '', resultsDetails: '', }, @@ -278,8 +276,8 @@ export default { scoreLimit: '', operator: '>', score: '', - teamNumLimit: 1, - teamNumLimitOpt: 1, + teamNumLimit: '', + teamNumLimitOpt: 0, resultAnnouncementTime: '', resultsDetails: '', } @@ -371,14 +369,6 @@ export default { this.form.competitionStageList = stages.slice(0, val) } }, - teamLimitChange (e) { - if (e === 1) { - this.form.competitionStageList.forEach(e => { - e.teamNumLimitOpt = 1 - e.teamNumLimit = 1 - }) - } - }, // 提交 save (status, next = 0, releaseType, cb) { let { form } = this @@ -462,7 +452,7 @@ export default { if (e.teamNumLimit) teamNumLimit += e.teamNumLimit // 各阶段自定义的人数之和 } if (invalid) return - if (form.teamLimit) { + if (form.teamLimit && competitionType) { if (stages.length > minTeamSize) return util.errorMsg('阶段数不得大于团队人数下限') if (teamNumLimit > minTeamSize) return util.errorMsg('各阶段自定义的参赛人数之和不得大于团队人数下限') }