|
|
@ -241,6 +241,7 @@ export default { |
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
} |
|
|
|
} |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
|
|
|
|
console.log(tokens) |
|
|
|
if(tokens){ |
|
|
|
if(tokens){ |
|
|
|
this.projectPermissions = this.projectId ? 1 : 0 |
|
|
|
this.projectPermissions = this.projectId ? 1 : 0 |
|
|
|
if(this.projectId){ |
|
|
|
if(this.projectId){ |
|
|
@ -268,13 +269,41 @@ export default { |
|
|
|
//获取项目列表 |
|
|
|
//获取项目列表 |
|
|
|
getData(){ |
|
|
|
getData(){ |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
systemId:'11', |
|
|
|
systemId:'11', |
|
|
|
|
|
|
|
"permissions":0, |
|
|
|
} |
|
|
|
} |
|
|
|
getProjectBySystemId(params).then((data)=>{ |
|
|
|
getProjectBySystemId(params).then((data)=>{ |
|
|
|
if(data.status == 200){ |
|
|
|
if(data.status == 200){ |
|
|
|
this.topicList = data.data.projects; |
|
|
|
this.topicList = data.data.projects; |
|
|
|
this.projectId = this.topicList[0].projectId; |
|
|
|
this.projectId = this.topicList[0].projectId; |
|
|
|
this.selectProject() |
|
|
|
let params = { |
|
|
|
|
|
|
|
"projectId":this.projectId, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getProjectDetail(params).then((data)=>{ |
|
|
|
|
|
|
|
if(data.status == 200){ |
|
|
|
|
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
|
|
|
|
let cid = sessionStorage.getItem('cid') |
|
|
|
|
|
|
|
let systemId = sessionStorage.getItem('systemId') |
|
|
|
|
|
|
|
let formList = [] |
|
|
|
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
|
|
|
sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) |
|
|
|
|
|
|
|
sessionStorage.setItem('formDataAccountPassword', '') |
|
|
|
|
|
|
|
this.projectName = data.data.projectManage.projectName |
|
|
|
|
|
|
|
this.projectManage = data.data.projectManage; |
|
|
|
|
|
|
|
this.requires = data.data.projectJudgmentVos; |
|
|
|
|
|
|
|
// location.href = 'http://39.108.250.202/banksystem/#/index/list?'+'token='+token+'&cid='+cid+'&systemId='+systemId |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
//获取当前时间 |
|
|
|
|
|
|
|
let startTime = new Date().getTime(); |
|
|
|
|
|
|
|
sessionStorage.setItem('startTime', startTime) |
|
|
|
|
|
|
|
this.day = '00'; |
|
|
|
|
|
|
|
this.hour = '00'; |
|
|
|
|
|
|
|
this.minutes = '00'; |
|
|
|
|
|
|
|
this.seconds = '00'; |
|
|
|
|
|
|
|
this.getClearTime(); |
|
|
|
|
|
|
|
this.startCountFn(); |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
}).catch((error)=>{ |
|
|
|
}) |
|
|
|
}) |
|
|
@ -282,15 +311,22 @@ export default { |
|
|
|
//选择好题目 |
|
|
|
//选择好题目 |
|
|
|
selectProject(){ |
|
|
|
selectProject(){ |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
projectId:this.projectId, |
|
|
|
"projectId":this.projectId, |
|
|
|
} |
|
|
|
} |
|
|
|
getProjectDetail(params).then((data)=>{ |
|
|
|
getProjectDetail(params).then((data)=>{ |
|
|
|
console.log(data) |
|
|
|
|
|
|
|
if(data.status == 200){ |
|
|
|
if(data.status == 200){ |
|
|
|
this.projectName = data.data.projectName |
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
this.projectManage = data.data.projectManage; |
|
|
|
let cid = sessionStorage.getItem('cid') |
|
|
|
this.requires = data.data.projectJudgmentVos; |
|
|
|
let systemId = sessionStorage.getItem('systemId') |
|
|
|
location.href = 'http://39.108.250.202/banksystem/#/index/list' |
|
|
|
let formList = [] |
|
|
|
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
|
|
|
sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) |
|
|
|
|
|
|
|
sessionStorage.setItem('formDataAccountPassword', '') |
|
|
|
|
|
|
|
this.projectName = data.data.projectManage.projectName; |
|
|
|
|
|
|
|
this.projectManage = data.data.projectManage; |
|
|
|
|
|
|
|
this.requires = data.data.projectJudgmentVos; |
|
|
|
|
|
|
|
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)=>{ |
|
|
|
}).catch((error)=>{ |
|
|
|
}) |
|
|
|
}) |
|
|
@ -347,7 +383,7 @@ export default { |
|
|
|
sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('formDataAccountPassword', '') |
|
|
|
sessionStorage.setItem('formDataAccountPassword', '') |
|
|
|
let list = this.requires |
|
|
|
let list = this.requires |
|
|
|
this.grade = data.data.totalScore |
|
|
|
this.grade = data.data.retMap.totalScore |
|
|
|
for (var j=0;j<list.length;j++){ |
|
|
|
for (var j=0;j<list.length;j++){ |
|
|
|
for (var i=0;i<datas.length;i++){ |
|
|
|
for (var i=0;i<datas.length;i++){ |
|
|
|
if (datas[i].lcId== list[j].judgmentId){ |
|
|
|
if (datas[i].lcId== list[j].judgmentId){ |
|
|
|