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();
}