From 2c51936a5ec920ebda1e72be83fc6f3969a34cbd Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 5 Nov 2021 17:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4=E5=90=8E?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=80=BB=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/case/index.vue | 54 +++++++++++++++---- src/pages/counter/list/index.vue | 7 ++- .../personal/currentAccount/openAccount.vue | 2 +- 3 files changed, 52 insertions(+), 11 deletions(-) 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