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 @@
- +
- +
- + diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue index d51f4a8..dda7567 100644 --- a/src/views/yingji/enforcing.vue +++ b/src/views/yingji/enforcing.vue @@ -106,6 +106,11 @@ > + {{ componendDistrict(scope.row.district) }} - - +
- {{ scope.row.checkStatus == 2 ? "未检查" : "已检查" }} + {{ scope.row.checkStatus == 1 ? "已检查" : "未检查" }}
- + @@ -289,6 +299,7 @@ export default { //检测状态 checkStatus: "", enterpriseName: "", + status: 1, }, plannedMonth: "", checkList: [""], diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index 96efd55..a415b79 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -57,11 +57,15 @@ ref="executive" /> - +