diff --git a/src/setting.js b/src/setting.js index dbe0acd..a2f02d6 100644 --- a/src/setting.js +++ b/src/setting.js @@ -9,10 +9,11 @@ const isPro = url.includes('120.78.127.12'); //正式服 let jumpPath = ""; let host = ""; if (isDev) { - jumpPath = "http://192.168.31.154:8087/"; // 本地需要启动判分点系统 + // jumpPath = "http://192.168.31.154:8087/"; // 本地调试-需要启动本地判分点系统 // host = 'http://192.168.31.216:9000'// 榕 // host = 'http://192.168.31.125:9000'// 坤 // host = 'http://192.168.31.137:9000'// 赓 + jumpPath = "http://39.108.250.202/judgmentPoint/"; host = "http://39.108.250.202:9000"; } else if (isTest) { jumpPath = "http://39.108.250.202/judgmentPoint/"; diff --git a/src/views/serve/Configure.vue b/src/views/serve/Configure.vue index 0c9f0b3..d85f095 100644 --- a/src/views/serve/Configure.vue +++ b/src/views/serve/Configure.vue @@ -185,7 +185,7 @@ export default { this.$router.push("/addconfigure"); }, getIntoProject(row) { - this.$router.push(`/projectList/?systemId=${row.systemId}&show=1`) + this.$router.push(`/projectList?systemId=${row.systemId}&show=1`) }, getIntoJudgement(row) { // console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`); diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue index 7074f55..5d6a95a 100644 --- a/src/views/serve/projectAdd.vue +++ b/src/views/serve/projectAdd.vue @@ -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;