|
|
|
@ -413,10 +413,9 @@ export default { |
|
|
|
|
let result = [] |
|
|
|
|
// 如果是安财赛事,只展示4条固定的赛事 |
|
|
|
|
if (this.fromOffical) { |
|
|
|
|
result = list |
|
|
|
|
// list.forEach(e => { |
|
|
|
|
// (+e.id > 457 && +e.id < 462) && result.push(e) |
|
|
|
|
// }) |
|
|
|
|
list.forEach(e => { |
|
|
|
|
(+e.id > 457 && +e.id < 462) && result.push(e) |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
result = list |
|
|
|
|
} |
|
|
|
@ -801,13 +800,20 @@ export default { |
|
|
|
|
Util.cookies.set('projectId', form.projectId) |
|
|
|
|
Util.cookies.set('token', token) |
|
|
|
|
Util.cookies.set('courseId', form.cid) |
|
|
|
|
Util.cookies.set('curriculumName', escape(form.systemName)) |
|
|
|
|
Util.cookies.set('curriculumName', encodeURIComponent(form.systemName)) |
|
|
|
|
Util.cookies.set('systemId', form.systemId) |
|
|
|
|
Util.cookies.set('competitionId', this.curItem.id) |
|
|
|
|
Util.cookies.set('stageId', form.stageId) |
|
|
|
|
Util.cookies.set('teamId', this.curItem.teamId) |
|
|
|
|
Util.cookies.set('stopTime', form.endTime) |
|
|
|
|
Util.cookies.set('resultsDetails', form.resultsDetails) |
|
|
|
|
Util.cookies.set('resultAnnouncementTime', isNaN(form.resultAnnouncementTime) ? '' : form.resultAnnouncementTime) |
|
|
|
|
Util.cookies.set('mallId', form.mallId) |
|
|
|
|
Util.cookies.set('fromManager', '', -1) |
|
|
|
|
Util.cookies.set('isSubmit', '', -1) |
|
|
|
|
Util.cookies.set('language', '', -1) |
|
|
|
|
Util.cookies.set('className', '', -1) |
|
|
|
|
|
|
|
|
|
// 8个python子系统都跳这个地址,子系统会通过cookie里的systemId识别展示哪套系统 |
|
|
|
|
location.href = process.env.NODE_ENV === 'development' ? |
|
|
|
|
`http://${location.hostname}:8085/#/` : |
|
|
|
@ -818,9 +824,9 @@ export default { |
|
|
|
|
// 进入子系统 |
|
|
|
|
toSub () { |
|
|
|
|
const form = this.curItem |
|
|
|
|
const { systemId, projectId, cid, stageId } = form.curStage |
|
|
|
|
let { systemId, systemName, projectId, cid, stageId, startTime, endTime, mallId, resultAnnouncementTime, method } = form.curStage |
|
|
|
|
const competitionId = form.id |
|
|
|
|
const teamId = form.teamId |
|
|
|
|
const { teamId } = form |
|
|
|
|
let token = Util.local.get(Setting.tokenKey); |
|
|
|
|
if (systemId == 11) { |
|
|
|
|
// 银行系统 |
|
|
|
@ -828,6 +834,9 @@ export default { |
|
|
|
|
} 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) |
|
|
|
|