|
|
|
@ -221,7 +221,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
host: Setting.apiBaseURL, |
|
|
|
|
projectId: this.$route.query.projectId, |
|
|
|
|
systemList: Setting.systemList, |
|
|
|
|
token: btoa(sessionStorage.getItem('token')), |
|
|
|
@ -608,42 +607,42 @@ export default { |
|
|
|
|
}, |
|
|
|
|
toJudgePoint(type, row) { // 进入判分点系统 |
|
|
|
|
this.handleCacheData(); |
|
|
|
|
// let host = this.host; |
|
|
|
|
let host = "http://192.168.31.154:8087/"; // 本地 |
|
|
|
|
let jumpPath = Setting.jumpPath; |
|
|
|
|
// let jumpPath = "http://192.168.31.154:8087/"; // 本地 |
|
|
|
|
let { systemId } = this.projectManage; |
|
|
|
|
let href = ""; |
|
|
|
|
if (type === "view") { |
|
|
|
|
// 查看 |
|
|
|
|
if (systemId == 2) { |
|
|
|
|
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
|
href = `${jumpPath}/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
|
} else if (systemId == 3) { |
|
|
|
|
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
|
href = `${jumpPath}/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
|
} else if (systemId == 11) { |
|
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
|
href = `${host}jdTrials/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
href = `${jumpPath}/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
} else { |
|
|
|
|
// 编程类判分点(python子系统) |
|
|
|
|
href = `${host}jdTrials/#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
href = `${jumpPath}/#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
} |
|
|
|
|
} else if (type === "edit") { |
|
|
|
|
// 自定义(老师端隐藏此功能) |
|
|
|
|
if (systemId == 2) { |
|
|
|
|
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
|
href = `${jumpPath}/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
|
} else if (systemId == 3) { |
|
|
|
|
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
|
href = `${jumpPath}/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
|
} else if (systemId == 11) { |
|
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
|
href = `${host}jdTrials/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
href = `${jumpPath}/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
} else { |
|
|
|
|
// 编程类判分点(python子系统) |
|
|
|
|
href = `${host}jdTrials/#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
href = `${jumpPath}/#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
} |
|
|
|
|
} else if (type === 'home') { |
|
|
|
|
if (systemId == 2 || systemId == 3) { |
|
|
|
|
href = `${host}jdTrials/#/list`; |
|
|
|
|
href = `${jumpPath}/#/list`; |
|
|
|
|
} else { |
|
|
|
|
// 进入判分点系统首页(老师端隐藏此功能) |
|
|
|
|
href = `${host}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
href = `${jumpPath}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
location.href = href; |
|
|
|
|