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