|
|
|
@ -354,6 +354,20 @@ export default { |
|
|
|
|
...mapMutations({ |
|
|
|
|
initState: 'system/initState' |
|
|
|
|
}), |
|
|
|
|
clearStore() { |
|
|
|
|
// 清空缓存 |
|
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
|
let cid = sessionStorage.getItem('cid') |
|
|
|
|
let systemId = sessionStorage.getItem('systemId') |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
sessionStorage.clear() |
|
|
|
|
sessionStorage.setItem('token', token) |
|
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
|
sessionStorage.setItem('projectId', projectId) |
|
|
|
|
// 初始化vuex中的state |
|
|
|
|
this.initState(); |
|
|
|
|
}, |
|
|
|
|
closePane(){ |
|
|
|
|
this.closePaneJudge = false |
|
|
|
|
this.lockIt = false |
|
|
|
@ -470,7 +484,8 @@ export default { |
|
|
|
|
selectProjects(params){ |
|
|
|
|
getProjectDetail(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
this.lockIt = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.globalTimer = ""; |
|
|
|
|
let stopTime = sessionStorage.getItem('timestamp') |
|
|
|
|
let timestamp = +stopTime; |
|
|
|
@ -500,6 +515,15 @@ export default { |
|
|
|
|
}, |
|
|
|
|
//选择好题目 |
|
|
|
|
selectProject(){ |
|
|
|
|
// 和重新开始区别开,不再问是否再试一次 |
|
|
|
|
this.lockIt = false |
|
|
|
|
this.clearStore() |
|
|
|
|
deleteCache().then((data)=>{ |
|
|
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
"projectId":this.projectId, |
|
|
|
|
} |
|
|
|
@ -523,9 +547,9 @@ export default { |
|
|
|
|
// 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 |
|
|
|
|
//测试服 |
|
|
|
|
location.href = 'http://39.108.250.202/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 |
|
|
|
|
location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
@ -587,11 +611,8 @@ export default { |
|
|
|
|
this.loading = true; |
|
|
|
|
submit(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
// 清空缓存 |
|
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
|
let cid = sessionStorage.getItem('cid') |
|
|
|
|
let systemId = sessionStorage.getItem('systemId') |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
this.clearStore() |
|
|
|
|
|
|
|
|
|
let firstLoad = null |
|
|
|
|
let firstLoad2 = null |
|
|
|
|
if(sessionStorage.getItem('firstLoad')) { |
|
|
|
@ -600,11 +621,7 @@ export default { |
|
|
|
|
if(sessionStorage.getItem('firstLoad2')) { |
|
|
|
|
firstLoad2 = sessionStorage.getItem('firstLoad2') |
|
|
|
|
} |
|
|
|
|
sessionStorage.clear() |
|
|
|
|
sessionStorage.setItem('token', token) |
|
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
|
sessionStorage.setItem('projectId', projectId) |
|
|
|
|
|
|
|
|
|
this.lockIt = true |
|
|
|
|
if(firstLoad) { |
|
|
|
|
sessionStorage.setItem('firstLoad', firstLoad) |
|
|
|
@ -612,8 +629,8 @@ export default { |
|
|
|
|
if(firstLoad2) { |
|
|
|
|
sessionStorage.setItem('firstLoad2', firstLoad2) |
|
|
|
|
} |
|
|
|
|
// 初始化vuex中的state |
|
|
|
|
this.initState(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let datas= data.data.retMap.scoreInfo; |
|
|
|
|
let formList = [] |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
@ -728,22 +745,15 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
reload() { |
|
|
|
|
this.clearStore() |
|
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
|
let cid = sessionStorage.getItem('cid') |
|
|
|
|
let systemId = sessionStorage.getItem('systemId') |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
sessionStorage.clear() |
|
|
|
|
sessionStorage.setItem('token', token) |
|
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
|
sessionStorage.setItem('projectId', projectId) |
|
|
|
|
|
|
|
|
|
let formList = [] |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) |
|
|
|
|
sessionStorage.setItem('accountPasswordAll', '') |
|
|
|
|
// 初始化vuex中的state |
|
|
|
|
this.initState(); |
|
|
|
|
let params = { |
|
|
|
|
"projectId":projectId, |
|
|
|
|
} |
|
|
|
@ -769,9 +779,9 @@ export default { |
|
|
|
|
// 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 |
|
|
|
|
//测试服 |
|
|
|
|
location.href = 'http://39.108.250.202/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 |
|
|
|
|
location.href = "http://192.168.31.155:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId |
|
|
|
|
}, |
|
|
|
|
//重新开始 |
|
|
|
|
// reload() { |
|
|
|
|