|
|
|
@ -39,11 +39,9 @@ |
|
|
|
|
class="tips"> |
|
|
|
|
(团队赛是否限制队内每个成员只能参加一个阶段赛项? |
|
|
|
|
<el-radio v-model="form.teamLimit" |
|
|
|
|
:label="1" |
|
|
|
|
@change="teamLimitChange">是</el-radio> |
|
|
|
|
:label="1">是</el-radio> |
|
|
|
|
<el-radio v-model="form.teamLimit" |
|
|
|
|
:label="0" |
|
|
|
|
@change="teamLimitChange">否</el-radio> |
|
|
|
|
:label="0">否</el-radio> |
|
|
|
|
) |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
@ -89,7 +87,7 @@ |
|
|
|
|
<el-input v-model.number="item.teamNumLimit" |
|
|
|
|
type="number" |
|
|
|
|
style="width: 150px;" |
|
|
|
|
:disabled="item.teamNumLimitOpt === 0 || form.teamLimit === 1"></el-input> 人 |
|
|
|
|
:disabled="item.teamNumLimitOpt === 0"></el-input> 人 |
|
|
|
|
<span class="tips">(可限制本阶段单个团队的出战人数)</span> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="step1.completeCompetitionSetup.competitionType" |
|
|
|
@ -246,8 +244,8 @@ export default { |
|
|
|
|
scoreLimit: '', |
|
|
|
|
operator: '>', |
|
|
|
|
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('各阶段自定义的参赛人数之和不得大于团队人数下限') |
|
|
|
|
} |
|
|
|
|