diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 23b8b3f..001b2b2 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -364,6 +364,7 @@ export default { let classId = sessionStorage.getItem('classId') let timestamp = sessionStorage.getItem('timestamp') let startTime = sessionStorage.getItem('startTime') + const storeProjectId = sessionStorage.getItem('storeProjectId') sessionStorage.clear() sessionStorage.setItem('token', token) sessionStorage.setItem('cid', cid) @@ -381,6 +382,9 @@ export default { if(startTime) { sessionStorage.setItem('startTime', startTime) } + if(storeProjectId) { + sessionStorage.setItem('storeProjectId', storeProjectId) + } // 初始化vuex中的state @@ -439,10 +443,17 @@ export default { // projectId: projectId // }) // } - - this.selectProjects({ - projectId: this.topicList[0].projectId - }) + const storeProjectId = sessionStorage.getItem('storeProjectId') + if(storeProjectId) { + this.selectProjects({ + projectId: storeProjectId + }) + }else { + this.selectProjects({ + projectId: this.topicList[0].projectId + }) + } + this.gotuQueryVariable() @@ -511,7 +522,13 @@ export default { if(projectId){ this.projectId = projectId }else{ - this.projectId = this.topicList[0].projectId; + const storeProjectId = sessionStorage.getItem('storeProjectId') + if(storeProjectId) { + this.projectId = storeProjectId; + }else { + this.projectId = this.topicList[0].projectId; + } + } sessionStorage.setItem('projectId', this.projectId) let params = { @@ -568,11 +585,13 @@ export default { // sessionStorage.setItem('projectId', projectId) // this.topicList[localProjectIndex].projectId // localStorage.setItem('localProjectIndex', JSON.stringify(this.projectId)) + this.$nextTick(() => { this.clearStore() }) + // deleteCache().then((data)=>{ // }).catch(() => { @@ -582,6 +601,7 @@ export default { let params = { "projectId":this.projectId, } + sessionStorage.setItem('storeProjectId', this.projectId) let formList = [] sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) @@ -602,9 +622,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.155: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)=>{ }) @@ -835,9 +855,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.155: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 }, checkVer() { diff --git a/src/components/dialog/index.vue b/src/components/dialog/index.vue index dbdc6e6..5cc84cf 100644 --- a/src/components/dialog/index.vue +++ b/src/components/dialog/index.vue @@ -10,7 +10,7 @@ class="apple" :close-on-click-modal="true" :show-close="false" - custom-class="w-full bgNone z6000" + custom-class="w3w5 bgNone z6000" >
@@ -472,7 +472,7 @@ export default { \ No newline at end of file diff --git a/src/components/selectBusiness/index.vue b/src/components/selectBusiness/index.vue index 0e31b43..262ea18 100644 --- a/src/components/selectBusiness/index.vue +++ b/src/components/selectBusiness/index.vue @@ -240,6 +240,7 @@ export default { let classId = sessionStorage.getItem('classId') let timestamp = sessionStorage.getItem('timestamp') let startTime = sessionStorage.getItem('startTime') + const storeProjectId = sessionStorage.getItem('storeProjectId') sessionStorage.clear() sessionStorage.setItem('token', token) sessionStorage.setItem('cid', cid) @@ -257,6 +258,9 @@ export default { if(startTime) { sessionStorage.setItem('startTime', startTime) } + if(storeProjectId) { + sessionStorage.setItem('storeProjectId', storeProjectId) + } // sessionStorage.setItem('systemData', systemData) diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index adf46e1..a4d4101 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -42,8 +42,10 @@