|
|
|
@ -336,6 +336,7 @@ export default { |
|
|
|
|
isFirst: true, |
|
|
|
|
timerList: [], |
|
|
|
|
|
|
|
|
|
choosing: false, |
|
|
|
|
enterVisible: false, |
|
|
|
|
enterForm: { |
|
|
|
|
realSchoolId: '', |
|
|
|
@ -502,7 +503,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.$set(item, 'curStage', curStage) |
|
|
|
|
if (!this.choosing) this.$set(item, 'curStage', curStage) |
|
|
|
|
} else { // 仅发布信息 |
|
|
|
|
this.$set(item, 'endText', '竞赛结束') |
|
|
|
|
total = playEndTime - now |
|
|
|
@ -602,6 +603,7 @@ export default { |
|
|
|
|
// 团队报名提交 |
|
|
|
|
async enterSubmit () { |
|
|
|
|
const form = this.enterForm |
|
|
|
|
if (!form.realSchoolId) return Util.errorMsg('请选择来自学校') |
|
|
|
|
if (!form.teamId) return Util.errorMsg('请选择团队') |
|
|
|
|
if (!form.invitationCode) return Util.errorMsg('请输入团队邀请码') |
|
|
|
|
if (this.curItem.isNeedCode && !form.registrationInvitationCode) return Util.errorMsg('请输入大赛邀请码') |
|
|
|
@ -616,11 +618,11 @@ export default { |
|
|
|
|
if (!this.agreeCheck) return Util.errorMsg('请勾选同意,才可继续报名!') |
|
|
|
|
const form = this.enterForm |
|
|
|
|
const isTeam = this.curItem.competitionType // 团队赛 |
|
|
|
|
if (!form.realSchoolId) return Util.errorMsg('请选择来自学校') |
|
|
|
|
if (isTeam) { |
|
|
|
|
if (!form.teamId) return Util.errorMsg('请选择团队') |
|
|
|
|
if (!form.invitationCode) return Util.errorMsg('请输入团队邀请码') |
|
|
|
|
} |
|
|
|
|
if (!form.realSchoolId) return Util.errorMsg('请选择来自学校') |
|
|
|
|
if (this.curItem.isNeedCode && !form.registrationInvitationCode) return Util.errorMsg('请输入大赛邀请码') |
|
|
|
|
this.submiting = true |
|
|
|
|
await this.$post(this.api[isTeam ? 'joinCompetitionTeam' : 'addCompetitionRegistration'], form) |
|
|
|
@ -705,6 +707,7 @@ export default { |
|
|
|
|
|
|
|
|
|
// 选择要进入的阶段 |
|
|
|
|
chooseStage (e, item) { |
|
|
|
|
this.choosing = true |
|
|
|
|
item.curStage = e |
|
|
|
|
this.signup(item) |
|
|
|
|
}, |
|
|
|
@ -752,7 +755,7 @@ export default { |
|
|
|
|
if (competitionType || this.fromOffical) { |
|
|
|
|
this.getTeam() |
|
|
|
|
this.enterForm = { |
|
|
|
|
realSchoolId: this.curRealSchoolId, |
|
|
|
|
realSchoolId: '', |
|
|
|
|
competitionId: id, |
|
|
|
|
teamId: '', |
|
|
|
|
invitationCode: '', |
|
|
|
@ -763,7 +766,7 @@ export default { |
|
|
|
|
} else { // 个人赛报名 |
|
|
|
|
this.curRow = item |
|
|
|
|
this.peopleSignupForm = { |
|
|
|
|
realSchoolId: this.curRealSchoolId, |
|
|
|
|
realSchoolId: '', |
|
|
|
|
registrationInvitationCode: '', |
|
|
|
|
} |
|
|
|
|
this.peopleSignupVisible = true |
|
|
|
@ -826,20 +829,29 @@ export default { |
|
|
|
|
const form = this.curItem |
|
|
|
|
let { systemId, systemName, projectId, cid, stageId, startTime, endTime, mallId, resultAnnouncementTime, method } = form.curStage |
|
|
|
|
const competitionId = form.id |
|
|
|
|
const { teamId } = form |
|
|
|
|
let token = Util.local.get(Setting.tokenKey); |
|
|
|
|
if (systemId == 11) { |
|
|
|
|
// 银行系统 |
|
|
|
|
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true` |
|
|
|
|
} else if (systemId == 12) { |
|
|
|
|
// 众筹系统 |
|
|
|
|
window.open(`http://120.78.139.126:8879?systemId=${systemId}&courseId=${cid}&projectId=${projectId}&token=${token}&userId=${this.userId}&classId=1&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}`); |
|
|
|
|
} else if (systemId == 19) { |
|
|
|
|
// 沙盘 |
|
|
|
|
location.href = `${Setting.sandPath}/#/?curriculumName=${systemName}&token=${token}&cid=${cid}&mallId=${mallId}&systemId=${systemId}&projectId=${projectId}&assessmentId=&classId=&startTime=&stopTime=${endTime}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&resultAnnouncementTime=${isNaN(resultAnnouncementTime) ? '' : resultAnnouncementTime}&userId=${this.userId}&account=${this.account}&referrer=${encodeURIComponent(location.href)}` |
|
|
|
|
const teamId = form.teamId || '' |
|
|
|
|
cid = cid || '' |
|
|
|
|
mallId = mallId || '' |
|
|
|
|
|
|
|
|
|
// 理论考试 |
|
|
|
|
if (method === 1) { |
|
|
|
|
window.open(this.$router.resolve(`/match/theoryExam?id=${form.id}&stageId=${stageId}&teamId=${teamId}`).href) |
|
|
|
|
this.choosing = false |
|
|
|
|
} else { |
|
|
|
|
// python系统 |
|
|
|
|
this.toPython(this.curProject) |
|
|
|
|
let token = Util.local.get(Setting.tokenKey) |
|
|
|
|
if (systemId == 11) { |
|
|
|
|
// 银行系统 |
|
|
|
|
location.href = `${Setting.systemPath}/#/index/list?curriculumName=${this.curriculumName}&token=${token}&cid=${cid}&systemId=${systemId}&projectId=${projectId}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&assessmentId=&classId=&stopTime=&test=true` |
|
|
|
|
} else if (systemId == 12) { |
|
|
|
|
// 众筹系统 |
|
|
|
|
window.open(`http://120.78.139.126:8879?systemId=${systemId}&courseId=${cid}&projectId=${projectId}&token=${token}&userId=${this.userId}&classId=1&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}`); |
|
|
|
|
} else if (systemId == 19) { |
|
|
|
|
// 沙盘 |
|
|
|
|
location.href = `${Setting.sandPath}/#/?curriculumName=${systemName}&token=${token}&cid=${cid}&mallId=${mallId}&systemId=${systemId}&projectId=${projectId}&assessmentId=&classId=&startTime=&stopTime=${endTime}&competitionId=${competitionId}&stageId=${stageId}&teamId=${teamId}&resultAnnouncementTime=${isNaN(resultAnnouncementTime) ? '' : resultAnnouncementTime}&userId=${this.userId}&account=${this.account}&referrer=${encodeURIComponent(location.href)}` |
|
|
|
|
} else { |
|
|
|
|
// python系统 |
|
|
|
|
this.toPython(this.curProject) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|