|
|
@ -17,10 +17,9 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button v-if="loaded && info.completeCompetitionSetup.competitionType" type="primary" round |
|
|
|
<el-button v-show="loaded && info.completeCompetitionSetup.competitionType" type="primary" round |
|
|
|
:disabled="hasReport" :loading="allocating" @click="autoAllocationConfirm">{{ !notBeginSign && allocated ? |
|
|
|
:disabled="hasReport" :loading="allocating" @click="autoAllocationConfirm">{{ !notBeginSign && allocated ? |
|
|
|
'取消' : '' |
|
|
|
'取消' : '' }}自动分配阶段成员</el-button> |
|
|
|
}}重新自动分配阶段成员</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" round @click="batchImport">导入</el-button> |
|
|
|
<el-button type="primary" round @click="batchImport">导入</el-button> |
|
|
|
<el-button type="primary" round @click="add" v-auth="'/match/list:管理:报名人员:新增'">新增</el-button> |
|
|
|
<el-button type="primary" round @click="add" v-auth="'/match/list:管理:报名人员:新增'">新增</el-button> |
|
|
|
<el-button type="primary" round :loading="exporting" @click="exportAll" |
|
|
|
<el-button type="primary" round :loading="exporting" @click="exportAll" |
|
|
@ -197,7 +196,9 @@ export default { |
|
|
|
schoolId: this.$store.state.user.schoolId, |
|
|
|
schoolId: this.$store.state.user.schoolId, |
|
|
|
id: +this.$route.query.id, |
|
|
|
id: +this.$route.query.id, |
|
|
|
info: { |
|
|
|
info: { |
|
|
|
completeCompetitionSetup: {} |
|
|
|
completeCompetitionSetup: { |
|
|
|
|
|
|
|
competitionType: 1, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
isDisable: this.$route.query.isDisable ? +this.$route.query.isDisable : '', |
|
|
|
isDisable: this.$route.query.isDisable ? +this.$route.query.isDisable : '', |
|
|
|
statusList: [ |
|
|
|
statusList: [ |
|
|
@ -397,14 +398,15 @@ export default { |
|
|
|
async autoAllocationConfirm () { |
|
|
|
async autoAllocationConfirm () { |
|
|
|
// 报名结束后 |
|
|
|
// 报名结束后 |
|
|
|
if (this.notBeginSign) { |
|
|
|
if (this.notBeginSign) { |
|
|
|
this.$confirm('确定立即给所有报名的团队重新自动分配阶段成员?', '提示', { |
|
|
|
this.$confirm('<p>您确定要立即为所有已报名团队自动分配阶段参赛人员吗?</p><p style="font-size: 13px;color: #f00;">此操作将清除现有分配,并为所有团队重新分配。</p>', '提示', { |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
|
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
}).then(async () => { |
|
|
|
}).then(async () => { |
|
|
|
await this.$post(`${this.api.automaticAllocation}?competitionId=${this.id}`) // 立马分配 |
|
|
|
await this.$post(`${this.api.automaticAllocation}?competitionId=${this.id}`) // 立马分配 |
|
|
|
}).catch(() => { }) |
|
|
|
}).catch(() => { }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$confirm(this.allocated ? '确定取消重新自动分配阶段成员?' : '<p style="margin-bottom: 5px;font-size: 16px;color: #f00;">确定开启重新自动分配阶段成员?</p><p>开启后,将在报名结束后给所有报名的团队重新自动分配阶段参赛人员</p>', { |
|
|
|
this.$confirm(this.allocated ? '您确定取消自动分配阶段参赛人员功能吗?<p style="margin-top: 5px;font-size: 13px;color: #f00;">取消后,报名截止时将不再自动分配。</p>' : '<p>您确定启用自动分配阶段参赛人员功能吗?</p><p style="margin-top: 5px;font-size: 13px;color: #f00;line-height: 1.6;">启用后,报名截止时系统将清空已有分配,并为所有团队重新自动分配。</p>', { |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|