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