|
|
@ -85,6 +85,7 @@ |
|
|
|
:label="1">自定义</el-radio> |
|
|
|
:label="1">自定义</el-radio> |
|
|
|
<el-input v-model.number="item.customNumber" |
|
|
|
<el-input v-model.number="item.customNumber" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 150px;" |
|
|
|
style="width: 150px;" |
|
|
|
:disabled="item.teamNumLimit === 0"></el-input> 人 |
|
|
|
:disabled="item.teamNumLimit === 0"></el-input> 人 |
|
|
|
<span class="tips">(可限制本阶段单个团队的出战人数)</span> |
|
|
|
<span class="tips">(可限制本阶段单个团队的出战人数)</span> |
|
|
@ -110,6 +111,7 @@ |
|
|
|
本阶段成绩排名前 |
|
|
|
本阶段成绩排名前 |
|
|
|
<el-input v-model.number="item.peopleLimit" |
|
|
|
<el-input v-model.number="item.peopleLimit" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 100px"></el-input> |
|
|
|
style="width: 100px"></el-input> |
|
|
|
队,可晋级下一阶段比赛 |
|
|
|
队,可晋级下一阶段比赛 |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -117,6 +119,7 @@ |
|
|
|
本阶段成绩排名前 |
|
|
|
本阶段成绩排名前 |
|
|
|
<el-input v-model.number="item.percentageLimit" |
|
|
|
<el-input v-model.number="item.percentageLimit" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 100px"></el-input> |
|
|
|
style="width: 100px"></el-input> |
|
|
|
%,可晋级下一阶段比赛 |
|
|
|
%,可晋级下一阶段比赛 |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -131,6 +134,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="item.score" |
|
|
|
<el-input v-model="item.score" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 100px"></el-input> |
|
|
|
style="width: 100px"></el-input> |
|
|
|
分,可晋级下一阶段比赛 |
|
|
|
分,可晋级下一阶段比赛 |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -142,6 +146,7 @@ |
|
|
|
占总成绩权重: |
|
|
|
占总成绩权重: |
|
|
|
<el-input v-model.number="item.pointWeight" |
|
|
|
<el-input v-model.number="item.pointWeight" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
:disabled="form.resultCalculationMethod != 0" |
|
|
|
:disabled="form.resultCalculationMethod != 0" |
|
|
|
style="width: 150px;"></el-input> % |
|
|
|
style="width: 150px;"></el-input> % |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -150,6 +155,7 @@ |
|
|
|
(阶段)比赛结束后 |
|
|
|
(阶段)比赛结束后 |
|
|
|
<el-input v-model.number="item.resultAnnouncementTime" |
|
|
|
<el-input v-model.number="item.resultAnnouncementTime" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 120px"></el-input> |
|
|
|
style="width: 120px"></el-input> |
|
|
|
小时,公布(阶段)比赛成绩。 |
|
|
|
小时,公布(阶段)比赛成绩。 |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -195,6 +201,7 @@ |
|
|
|
(阶段)比赛结束后 |
|
|
|
(阶段)比赛结束后 |
|
|
|
<el-input v-model.number="form.competitionStageList[0].resultAnnouncementTime" |
|
|
|
<el-input v-model.number="form.competitionStageList[0].resultAnnouncementTime" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
style="width: 120px"></el-input> |
|
|
|
style="width: 120px"></el-input> |
|
|
|
小时,公布(阶段)比赛成绩。 |
|
|
|
小时,公布(阶段)比赛成绩。 |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -216,8 +223,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import util from "@/libs/util"; |
|
|
|
import util from "@/libs/util"; |
|
|
|
import quill from "@/components/quill"; |
|
|
|
|
|
|
|
import Const from '@/const/match' |
|
|
|
import Const from '@/const/match' |
|
|
|
|
|
|
|
import _ from 'lodash' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
props: ['setupId', 'editing'], |
|
|
|
props: ['setupId', 'editing'], |
|
|
|
data () { |
|
|
|
data () { |
|
|
@ -374,7 +381,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提交 |
|
|
|
// 提交 |
|
|
|
save (status, next = 0) { |
|
|
|
save (status, next = 0) { |
|
|
|
let { form } = this |
|
|
|
const form = _.cloneDeep(this.form) |
|
|
|
const { rule } = form |
|
|
|
const { rule } = form |
|
|
|
let invalid = 0 |
|
|
|
let invalid = 0 |
|
|
|
let pointWeight = 0 |
|
|
|
let pointWeight = 0 |
|
|
@ -409,7 +416,7 @@ export default { |
|
|
|
// 积分赛 |
|
|
|
// 积分赛 |
|
|
|
if (!rule) { |
|
|
|
if (!rule) { |
|
|
|
// 个人 |
|
|
|
// 个人 |
|
|
|
if (form.resultCalculationMethod == 0 && e.pointWeight === '') { |
|
|
|
if (form.resultCalculationMethod == 0 && (e.pointWeight === '' || e.pointWeight === undefined)) { |
|
|
|
invalid = 1 |
|
|
|
invalid = 1 |
|
|
|
util.errorMsg('请输入权重') |
|
|
|
util.errorMsg('请输入权重') |
|
|
|
break |
|
|
|
break |
|
|
@ -425,7 +432,7 @@ export default { |
|
|
|
if (e.score !== '') e.scoreLimit = e.operator + e.score |
|
|
|
if (e.score !== '') e.scoreLimit = e.operator + e.score |
|
|
|
} |
|
|
|
} |
|
|
|
if (rule !== 2 && competitionType && e.teamNumLimit) { |
|
|
|
if (rule !== 2 && competitionType && e.teamNumLimit) { |
|
|
|
if (e.customNumber === '') { |
|
|
|
if (e.customNumber === '' || e.customNumber === undefined) { |
|
|
|
invalid = 1 |
|
|
|
invalid = 1 |
|
|
|
util.errorMsg('请输入团队参数人数限制') |
|
|
|
util.errorMsg('请输入团队参数人数限制') |
|
|
|
break |
|
|
|
break |
|
|
@ -439,7 +446,7 @@ export default { |
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (e.resultsDetails === 0 && e.resultAnnouncementTime !== '') { |
|
|
|
if (e.resultsDetails === 0 && (e.resultAnnouncementTime !== '' && e.resultAnnouncementTime !== undefined)) { |
|
|
|
if (e.resultAnnouncementTime < 0) { |
|
|
|
if (e.resultAnnouncementTime < 0) { |
|
|
|
invalid = 1 |
|
|
|
invalid = 1 |
|
|
|
util.errorMsg('成绩公布时间不得小于0') |
|
|
|
util.errorMsg('成绩公布时间不得小于0') |
|
|
@ -453,6 +460,7 @@ export default { |
|
|
|
e.resultAnnouncementTime = +e.resultAnnouncementTime |
|
|
|
e.resultAnnouncementTime = +e.resultAnnouncementTime |
|
|
|
} |
|
|
|
} |
|
|
|
if (e.teamNumLimit && e.customNumber) customNumber += e.customNumber // 各阶段自定义的人数之和 |
|
|
|
if (e.teamNumLimit && e.customNumber) customNumber += e.customNumber // 各阶段自定义的人数之和 |
|
|
|
|
|
|
|
if (!e.teamNumLimit) e.customNumber = '' |
|
|
|
} |
|
|
|
} |
|
|
|
if (invalid) return |
|
|
|
if (invalid) return |
|
|
|
if (form.teamLimit && competitionType) { |
|
|
|
if (form.teamLimit && competitionType) { |
|
|
|