From 65546059fcc95ae201102969430aa9cbf0ff8c74 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 3 Dec 2021 17:57:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=80=80=E5=87=BA?= =?UTF-8?q?=E8=B7=B3=E5=9B=9E=E5=AF=B9=E5=BA=94=E7=9A=84=E8=81=8C=E7=AB=99?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/case/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 6554a06..76d2879 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -264,7 +264,7 @@ export default { this.projectPermissions = this.projectId ? 1 : 0 this.assessmentId && this.projectId && this.checkVer() this.codeId && this.codeIds.push(this.codeId) - if (projectId !=null){ + if (projectId !=null && projectId != '' && projectId !='null'){ let params = { "projectId":projectId, } From 1c729de9127785990f94a5cde650937f4f5f984f Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Mon, 6 Dec 2021 10:10:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 1 + src/components/case/index.vue | 8 ++++++++ src/layouts/header/index.vue | 3 ++- src/pages/lobbyManager/list/index.vue | 8 ++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/api/api.js b/src/api/api.js index 4a7c785..a40acd0 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,6 +2,7 @@ import axios from 'axios'; import router from '../router'; // 创建axios实例 const service = axios.create({ + // baseURL: "http://124.71.12.62:9000",//线上 baseURL: "http://39.108.250.202:9000/", // 中台测试服 // baseURL: "http://192.168.31.137:9000/", // 赓 // baseURL: "http://192.168.31.151:9000/", // 榕 diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 76d2879..07ffd78 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -424,7 +424,11 @@ export default { this.projectName = data.data.projectManage.projectName; this.projectManage = data.data.projectManage; this.requires = data.data.projectJudgmentVos; + //线上 + // location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //测试服 location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //本地 // location.href = "http://192.168.31.254:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId } }).catch((error)=>{ @@ -611,7 +615,11 @@ export default { this.minutes = "00"; this.hour = "00"; this.grade = '00' + //线上 + // location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //测试服 location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //本地 // location.href = "http://192.168.31.254:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId }, checkVer() { diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 0ce171f..79c56ce 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -34,12 +34,13 @@ export default { }, exit(){ let assessmentId = sessionStorage.getItem('assessmentId') - console.log(assessmentId) if (assessmentId != 'null' && assessmentId != null && assessmentId != ''){ window.location = 'http://39.108.250.202/student/#/ass/list' + // window.location = 'http://www.occupationlab.com/student/#/ass/list' }else{ let cid = sessionStorage.getItem('cid') window.location = 'http://39.108.250.202/student/#/station/preview?courseId='+cid+'&curriculumName=银行项目' + // window.location = 'http://www.occupationlab.com/student/#/station/preview?courseId='+cid+'&curriculumName=银行项目' } }, }, diff --git a/src/pages/lobbyManager/list/index.vue b/src/pages/lobbyManager/list/index.vue index e0f05b0..9f88bc3 100644 --- a/src/pages/lobbyManager/list/index.vue +++ b/src/pages/lobbyManager/list/index.vue @@ -179,10 +179,18 @@ export default { let assessmentId = sessionStorage.getItem('assessmentId') let classId = sessionStorage.getItem('classId') if (projectId){ + //线上 + // location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId+'&projectId='+projectId+'&assessmentId='+assessmentId+'&classId='+classId + //测试服 location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId+'&projectId='+projectId+'&assessmentId='+assessmentId+'&classId='+classId + //本地 // location.href = "http://192.168.31.254:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId+'&projectId='+projectId+'&assessmentId='+assessmentId+'&classId='+classId }else{ + //线上 + // location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //测试服 location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId + //本地 // location.href = "http://192.168.31.254:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId } },