|
|
|
@ -292,23 +292,7 @@ export default { |
|
|
|
|
let roleId = this.roleId == 4 ? 0 : 1; |
|
|
|
|
let userName = window.btoa(encodeURIComponent(this.userName)); |
|
|
|
|
|
|
|
|
|
if (id == 1) { |
|
|
|
|
href = `${host}pyTrials/#/`; |
|
|
|
|
} else if (id == 4) { |
|
|
|
|
href = `${host}pyFinance/#/`; |
|
|
|
|
} else if (id == 5) { |
|
|
|
|
href = `${host}pyProjects/#/`; |
|
|
|
|
} else if (id == 6) { |
|
|
|
|
href = `${host}pyRandom/#/`; |
|
|
|
|
} else if (id == 7) { |
|
|
|
|
href = `${host}pyQuantification/#/`; |
|
|
|
|
} else if (id == 8) { |
|
|
|
|
href = `${host}pyAnalysis/#/`; |
|
|
|
|
} else if (id == 9) { |
|
|
|
|
href = `${host}pyDataclean/#/`; |
|
|
|
|
} else if (id == 10) { |
|
|
|
|
href = `${host}pyAcquisition/#/`; |
|
|
|
|
} else if (id == 11) { |
|
|
|
|
if (id == 11) { |
|
|
|
|
console.log(host) |
|
|
|
|
// href = `${host}bank/#/`; |
|
|
|
|
//线上 |
|
|
|
@ -323,12 +307,15 @@ export default { |
|
|
|
|
window.open(`http://121.37.29.24:80/yyyflogin?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=3989a0ad671849b99dcbdcc208782333&caseId=9681f86902314b10bc752909121f9ab9&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=7ff5d4715b114b7398b6f26c20fac460`); |
|
|
|
|
} else if (id == 22) { |
|
|
|
|
window.open(`https://danbao.czcyedu.com/#/loginFromYyyf?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=eb7d8355119d449184c548b07dc01ed9&caseId=1198241070647873538&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=faaedd82adb9444285a5785e4a3dd4f9`); |
|
|
|
|
} else { |
|
|
|
|
if(process.env.NODE_ENV === 'development') { |
|
|
|
|
href = 'http://192.168.31.125:8080/#/' |
|
|
|
|
} else { |
|
|
|
|
const path = Setting.pythonList.find(e => e.id === id).path |
|
|
|
|
href = `${location.origin}/${path}` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.125:8080/#/' |
|
|
|
|
if (id != 21 && id != 22) { |
|
|
|
|
util.cookies.set("userId", this.userId); |
|
|
|
|
util.cookies.set("studentId", this.studentId); |
|
|
|
|
util.cookies.set("assessmentId", "", -1); |
|
|
|
|
util.cookies.set("projectId", "", -1); |
|
|
|
|
util.cookies.set("startTime", "", -1); |
|
|
|
|