From c7b565b65b625752b7512ae4d539c45896678656 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Thu, 18 May 2023 21:17:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 1 + src/components/OrgTable.vue | 1 - src/utils/request.js | 2 ++ src/views/Login.vue | 1 + src/views/checkPage.vue | 1 + src/views/permissionApplication/launch.vue | 4 +--- src/views/userCenter/processCenter.vue | 1 + src/views/userCenter/processCenter/tabs.vue | 11 ++++++++--- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/Header.vue b/src/components/Header.vue index 1138ce2..cb151ce 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -87,6 +87,7 @@ export default { this.$store.commit('saveUserInfo', null) this.$store.commit('setHandleProcess', null) this.$store.commit('savePathUrl', null) + this.$store.commit('activeTab', null) this.$store.commit('removeDicts', null) localStorage.removeItem('cookie') // var sevice = "http://"+window.location.host+"/"; diff --git a/src/components/OrgTable.vue b/src/components/OrgTable.vue index f8e1bf0..a99416f 100644 --- a/src/components/OrgTable.vue +++ b/src/components/OrgTable.vue @@ -1104,7 +1104,6 @@ export default { }, watch: { visible (val) { - debugger this.isVisible = val this.tableChecked = null if (this.maxSelected === 1) { diff --git a/src/utils/request.js b/src/utils/request.js index 9a06ef2..9c8e744 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -83,6 +83,7 @@ instance.interceptors.response.use(function (response) { store.commit('savePathUrl', null) store.commit('setHandleProcess', null) store.commit('removeDicts', null) + store.commit('activeTab', null) localStorage.removeItem('cookie') router.push('/login') Message.error('登录超时过期') @@ -98,6 +99,7 @@ instance.interceptors.response.use(function (response) { store.commit('savePathUrl', null) store.commit('setHandleProcess', null) store.commit('removeDicts', null) + store.commit('activeTab', null) localStorage.removeItem('cookie') router.push('/login') Message.error('登录超时过期') diff --git a/src/views/Login.vue b/src/views/Login.vue index e5df87a..a50abf1 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -124,6 +124,7 @@ export default { this.$message.warning('暂无权限,请联系管理员授权') this.$store.commit('saveUserInfo', null) this.$store.commit('setHandleProcess', null) + this.$store.commit('activeTab', null) this.$store.commit('savePathUrl', null) this.$store.commit('removeDicts', null) // var sevice = "http://"+window.location.host+"/"; diff --git a/src/views/checkPage.vue b/src/views/checkPage.vue index 33e833e..445c3fc 100644 --- a/src/views/checkPage.vue +++ b/src/views/checkPage.vue @@ -46,6 +46,7 @@ export default { this.$message.warning('暂无权限,请联系管理员授权') this.$store.commit('saveUserInfo', null) this.$store.commit('setHandleProcess', null) + this.$store.commit('activeTab', null) this.$store.commit('savePathUrl', null) this.$store.commit('removeDicts', null) // var sevice = "http://"+window.location.host+"/"; diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue index a13eb17..0496dcb 100644 --- a/src/views/permissionApplication/launch.vue +++ b/src/views/permissionApplication/launch.vue @@ -261,7 +261,7 @@ export default { } item.reportId = item['id'] delete item['id'] - item.power='' + item.power='2' templateL.push(item) }) this.tableData=templateL @@ -315,7 +315,6 @@ export default { twoApproveName:item.twoApproveName, userId:this.userId, } - debugger delete item['oneApprove'] delete item['oneApproveName'] delete item['twoApprove'] @@ -332,7 +331,6 @@ export default { }, // 保存 handleSave(){ - debugger this.saveLoading = true if(this.tableData.length==0){ this.$message.warning('至少需要选择一条报告数据') diff --git a/src/views/userCenter/processCenter.vue b/src/views/userCenter/processCenter.vue index bb72d98..6d181b0 100644 --- a/src/views/userCenter/processCenter.vue +++ b/src/views/userCenter/processCenter.vue @@ -110,6 +110,7 @@ import tabs from '../userCenter/processCenter/tabs.vue' console.log(data) this.checkList=data }); + let name=this.controlNode('RXXTU4A5YN')?'first':'' this.isShowbtn= name =='first'?true:false diff --git a/src/views/userCenter/processCenter/tabs.vue b/src/views/userCenter/processCenter/tabs.vue index 2a86178..fc46ed2 100644 --- a/src/views/userCenter/processCenter/tabs.vue +++ b/src/views/userCenter/processCenter/tabs.vue @@ -55,9 +55,14 @@ export default { this.form = JSON.parse(JSON.stringify(data)) console.log(this.form,"hhh") }) - let name=this.controlNode('RXXTU4A5YN')?'first':(this.controlNode('NXQ54Q9QP4')?'fourth':'five') - this.$store.commit('setActiveTabIndex',name) - this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name + if(this.$store.getters.activeTab == ''){ + let name=this.controlNode('RXXTU4A5YN')?'first':(this.controlNode('NXQ54Q9QP4')?'fourth':'five') + this.$store.commit('setActiveTabIndex',name) + this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name + }else{ + this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name + } + }, methods: { controlNode(node) {