From 348ccf7ac7ef3aa3f954e5ee4ce0859cb46eb973 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Fri, 22 Dec 2023 16:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/newyjLayout.vue | 8 +++--- src/views/components/AddDialog/tab1.vue | 2 +- src/views/components/AddDialog/tab2.vue | 2 +- src/views/components/AddDialog/tab3.vue | 2 +- src/views/yingji/enforcing.vue | 35 ++++++++++++++++--------- src/views/yingji/planManage.vue | 13 ++++++++- 6 files changed, 42 insertions(+), 20 deletions(-) diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index e509d5f..d37821a 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -101,11 +101,12 @@ export default { let isGovernmentAffairsNetwork = localStorage.getItem( "isGovernmentAffairsNetwork" ); - const G_USER_INFO = JSON.parse(localStorage.getItem("G_USER_INFO")); + // const G_USER_INFO = JSON.parse(localStorage.getItem("G_USER_INFO")); + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); if (isGovernmentAffairsNetwork == "1") { - this.userName = G_USER_INFO.data.username; + this.userName = userInfo.lawLevel + " " + userInfo.nickName; } else { - this.userName = this.dept.deptName + " " + this.username; + this.userName = userInfo.lawLevel + " " + userInfo.nickName; } }, watch: { @@ -146,7 +147,6 @@ export default { localStorage.removeItem("isGovernmentAffairsNetwork"); location.href = "/login?redirect=%2Findex"; } - }); }) .catch(() => {}); diff --git a/src/views/components/AddDialog/tab1.vue b/src/views/components/AddDialog/tab1.vue index 3838205..f5d8c6a 100644 --- a/src/views/components/AddDialog/tab1.vue +++ b/src/views/components/AddDialog/tab1.vue @@ -82,7 +82,7 @@