From 57f0f4ce8324011434b9ab3c5c8e80dea8a229ab Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 31 Jan 2024 10:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/match/add/step1.vue | 2 +- src/pages/match/add/step2.vue | 30 ++++++++++-------------------- 2 files changed, 11 insertions(+), 21 deletions(-) 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('各阶段自定义的参赛人数之和不得大于团队人数下限') }