From 4fa4c7fbdbdbf613420dbe924199d016da04c81b Mon Sep 17 00:00:00 2001
From: laozt <2721205210@qq.com>
Date: Mon, 25 Dec 2023 15:05:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=A4=E6=96=AD=E8=B4=A6?=
=?UTF-8?q?=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/user.js | 4 ++++
src/views/yingji/home.vue | 3 +--
src/views/yingji/planManage.vue | 13 ++++++++-----
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 2e0aa53..a452cf6 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -121,6 +121,10 @@ const user = {
.then((res) => {
const user = res.user;
sessionStorage.setItem("USER_INFO", JSON.stringify(user));
+ sessionStorage.setItem(
+ "USER_P_STATUS",
+ JSON.stringify(res.pstatus)
+ );
commit("get_dept", user.dept);
const avatar =
user.avatar == "" || user.avatar == null
diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue
index b42b710..fd560a5 100644
--- a/src/views/yingji/home.vue
+++ b/src/views/yingji/home.vue
@@ -343,8 +343,7 @@ export default {
this.queryParams.plannedYear = this.$moment(new Date()).format("yyyy");
this.getList();
- let SET_IS_ORG_PWD = JSON.parse(sessionStorage.getItem("SET_IS_ORG_PWD"));
- if (SET_IS_ORG_PWD) {
+ if (JSON.parse(sessionStorage.getItem("USER_P_STATUS")) == 1) {
// 原始密码修改
this.resetPwd();
}
diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue
index 1079d0c..b521605 100644
--- a/src/views/yingji/planManage.vue
+++ b/src/views/yingji/planManage.vue
@@ -148,7 +148,12 @@
- {{ scope.row.status == 1 ? "正式" : "草稿" }}
+ 正式
+ 草稿
@@ -336,7 +341,7 @@ export default {
},
// 行政区划
onChange(e) {
- console.log(1, e);
+ // console.log(1, e);
this.queryParams.district = e;
},
multipleChange(e) {
@@ -500,9 +505,7 @@ export default {
// console.log(this.$route.query.lawHierarchy);
this.queryParams.lawHierarchy = this.$route.query.lawHierarchy;
}
-
- let SET_IS_ORG_PWD = JSON.parse(sessionStorage.getItem("SET_IS_ORG_PWD"));
- if (SET_IS_ORG_PWD) {
+ if (JSON.parse(sessionStorage.getItem("USER_P_STATUS")) == 1) {
// 原始密码修改
this.resetPwd();
}