diff --git a/src/components/case/index.vue b/src/components/case/index.vue index bb63e7c..6f4913c 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -241,6 +241,7 @@ export default { sessionStorage.setItem('systemId', systemId) } let tokens = sessionStorage.getItem('token') + console.log(tokens) if(tokens){ this.projectPermissions = this.projectId ? 1 : 0 if(this.projectId){ @@ -268,13 +269,41 @@ export default { //获取项目列表 getData(){ let params = { - systemId:'11', + systemId:'11', + "permissions":0, } getProjectBySystemId(params).then((data)=>{ if(data.status == 200){ this.topicList = data.data.projects; 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)=>{ }) @@ -282,15 +311,22 @@ export default { //选择好题目 selectProject(){ let params = { - projectId:this.projectId, + "projectId":this.projectId, } getProjectDetail(params).then((data)=>{ - console.log(data) if(data.status == 200){ - this.projectName = data.data.projectName - this.projectManage = data.data.projectManage; - this.requires = data.data.projectJudgmentVos; - location.href = 'http://39.108.250.202/banksystem/#/index/list' + 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 + // location.href = "http://192.168.31.254:8093/#/index/list?"+'token='+token+'&cid='+cid+'&systemId='+systemId } }).catch((error)=>{ }) @@ -347,7 +383,7 @@ export default { sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) sessionStorage.setItem('formDataAccountPassword', '') let list = this.requires - this.grade = data.data.totalScore + this.grade = data.data.retMap.totalScore for (var j=0;j