接口判断账号

zhangtao
laozt 1 year ago
parent b9c512f673
commit 4fa4c7fbdb

@ -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

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

@ -148,7 +148,12 @@
<el-table-column label="执法层级" align="center" prop="lawHierarchy" />
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ scope.row.status == 1 ? "正式" : "草稿" }}</span>
<span style="color: #28b384" v-if="scope.row.status == 1"
>正式</span
>
<span style="color: #fdab5b" v-else-if="scope.row.status == 0"
>草稿</span
>
</template>
</el-table-column>
@ -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();
}

Loading…
Cancel
Save