Merge branch 'master' of ssh://git.czcyedu.com:222/huoran/FE_bankTeaching into master

20240205
luoJunYong.123 3 years ago
commit a6a9e5efee
  1. 38
      src/components/case/index.vue
  2. 24
      src/layouts/header/index.vue

@ -586,6 +586,16 @@ export default {
}).catch((error)=>{ }).catch((error)=>{
}) })
}, },
//
toPage(token, cid, systemId) {
const url = location.href
const host = url.includes('occupationlab.com') ?
`http://www.huorantech.cn/banksystem` :
process.env.NODE_ENV === 'development' ?
`http://192.168.31.155:8093` :
`http://39.108.250.202/banksystem`
location.href = `${host}/#/index/list?token=${token}&cid=${cid}&systemId=${systemId}`
},
// //
selectProject(){ selectProject(){
this.lockIt = false this.lockIt = false
@ -636,19 +646,7 @@ export default {
this.projectId = data.data.projectManage.projectId; this.projectId = data.data.projectManage.projectId;
this.projectManage = data.data.projectManage; this.projectManage = data.data.projectManage;
this.requires = data.data.projectJudgmentVos; this.requires = data.data.projectJudgmentVos;
//线 this.toPage(token, cid, systemId)
// location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
// location.href = 'http://www.huorantech.cn/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
//
if(process.env.NODE_ENV === 'development') {
location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId
}else {
location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
}
//
// location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId
} }
}).catch((error)=>{ }).catch((error)=>{
}) })
@ -875,19 +873,7 @@ export default {
this.grade = '00' this.grade = '00'
this.$router.push('/index/list') this.$router.push('/index/list')
this.getBeginTime() this.getBeginTime()
//线git sta this.toPage(token, cid, systemId)
// location.href = 'http://124.71.12.62/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
// location.href = 'http://www.huorantech.cn/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
//
if(process.env.NODE_ENV === 'development') {
location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId
}else {
location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId
}
//
// location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId
console.log(process.env.NODE_ENV)
}, },
checkVer() { checkVer() {

@ -33,15 +33,21 @@ export default {
}) })
}, },
exit(){ exit(){
let assessmentId = sessionStorage.getItem('assessmentId') let href = ''
if (assessmentId != 'null' && assessmentId != null && assessmentId != ''){ const url = location.href
window.location = 'http://39.108.250.202/student/#/ass/list' const host = url.includes('huorantech.cn') ?
// window.location = 'http://www.occupationlab.com/#/ass/list' `http://www.occupationlab.com` :
}else{ process.env.NODE_ENV === 'development' ?
let cid = sessionStorage.getItem('cid') `http://192.168.31.155:8082` :
window.location = 'http://39.108.250.202/student/#/station/preview?courseId='+cid+'&curriculumName=银行项目' `http://39.108.250.202/student`
// window.location = 'http://www.occupationlab.com/#/station/preview?courseId='+cid+'&curriculumName=' let assessmentId = sessionStorage.getItem('assessmentId')
} if (assessmentId != 'null' && assessmentId != null && assessmentId != ''){
href = `${host}/#/ass/list`
}else{
const cid = sessionStorage.getItem('cid')
href = `${host}/#/station/preview?courseId=${cid}&curriculumName=银行项目`
}
location.href = href
}, },
}, },
}; };

Loading…
Cancel
Save