考核练习跳转python优化

UI_2022-02-10
jialong.yu 3 years ago
parent 32e5a5d296
commit 3200f47137
  1. 37
      src/pages/ass/list/index.vue
  2. 29
      src/pages/station/preview/index.vue
  3. 37
      src/setting.js

@ -459,39 +459,16 @@ export default {
// href = `http://www.huorantech.cn/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
//
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
}else{
// href = 'http://192.168.31.125:8080/#/'
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
} else {
if(process.env.NODE_ENV === 'development') {
href = 'http://192.168.31.125:8080/#/'
} else {
const path = Setting.pythonList.find(e => e.id === curriculumId).path
href = `${location.origin}/${path}`
}
}
// switch (curriculumId) {
// // case 1:
// href = `${host}${this.url}/#/?projectId=${this.projectId}`;
// break;
// // case 4:
// // href = `${host}pyFinance/#/?projectId=${this.projectId}`;
// // break;
// // case 5:
// // href = `${host}pyProjects/#/?projectId=${this.projectId}`;
// // break;
// // case 6:
// // href = `${host}pyRandom/#/?projectId=${this.projectId}`;
// // break;
// // case 7:
// // href = `${host}pyQuantification/#/?projectId=${this.projectId}`;
// // break;
// // case 8:
// // href = `${host}pyAnalysis/#/?projectId=${this.projectId}`;
// // break;
// // case 9:
// // href = `${host}pyDataclean/#/?projectId=${this.projectId}`;
// // break;
// // case 10:
// // href = `${host}pyAcquisition/#/?projectId=${this.projectId}`;
// // break;
// }
if (!href) return util.errorMsg("该考核非Python考核,请选择其他考核");
location.href = href;
// location.href = 'http://192.168.31.154:8080/'
}
}
};

@ -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);

@ -73,6 +73,43 @@ const Setting = {
tokenKey: "oc_client_token", // localStorage里保存的token的key
storeKey: "oc_client_store", // localStorage里保存的vuex的key
initialPassword: "111aaa", // 默认密码
/**
* python子系统
* */
pythonList: [
{
id: 1,
path: 'pyTrials'
},
{
id: 4,
path: 'pyFinance'
},
{
id: 5,
path: 'pyProjects'
},
{
id: 6,
path: 'pyRandom'
},
{
id: 7,
path: 'pyQuantification'
},
{
id: 8,
path: 'pyAnalysis'
},
{
id: 9,
path: 'pyDataclean'
},
{
id: 10,
path: 'pyAcquisition'
}
],
/**
* 多语言配置
* */

Loading…
Cancel
Save