Commit bab2dcae authored by 张俊's avatar 张俊
parents 1db1a70e 20d338f5
...@@ -126,8 +126,6 @@ export default { ...@@ -126,8 +126,6 @@ export default {
this.readFlag = !this.readFlag; this.readFlag = !this.readFlag;
}, },
initMsg() { initMsg() {
console.log(this.userInfo);
console.log(this.$trace);
if (this.userInfo && this.userInfo.system_id) { if (this.userInfo && this.userInfo.system_id) {
this.$trace.setOptionValue("userId", this.userInfo.system_id); this.$trace.setOptionValue("userId", this.userInfo.system_id);
// this.$trace.setOptionValue('userType',this.userInfo.userType) // this.$trace.setOptionValue('userType',this.userInfo.userType)
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</div> </div>
<div class="person-menu" v-if="userInfo && userInfo.system_id"> <div class="person-menu">
<!-- 用户中心 --> <!-- 用户中心 -->
<div class="user-center nav-item"> <div class="user-center nav-item">
<span class="user-icon"> <span class="user-icon">
...@@ -86,14 +86,14 @@ ...@@ -86,14 +86,14 @@
style="width: 24px; height: 24px; border-radius: 50%; vertical-align: middle" style="width: 24px; height: 24px; border-radius: 50%; vertical-align: middle"
src="../assets/imgs/home_ic_user.png" /> src="../assets/imgs/home_ic_user.png" />
</span> </span>
<span v-if="userInfo && userInfo.system_id" class="user-name"> <span v-if="userInfo" class="user-name">
{{ userInfo.system_account || userInfo.system_id }} {{ userInfo.system_account }}
<bg-icon icon="#bg-ic-arrow-down" style="font-size: 8px; margin-left: 3px" /> <bg-icon icon="#bg-ic-arrow-down" style="font-size: 8px; margin-left: 3px" />
</span> </span>
<span v-else class="user-name"> 请登录 </span> <span v-else class="user-name"> 请登录 </span>
<div class="menu-virtual"></div> <div class="menu-virtual"></div>
<div v-if="userInfo && userInfo.system_id" class="menu-list"> <div v-if="userInfo" class="menu-list">
<div <div
v-for="(item, index) in systemMenu" v-for="(item, index) in systemMenu"
:key="index + 700" :key="index + 700"
...@@ -179,14 +179,9 @@ export default { ...@@ -179,14 +179,9 @@ export default {
return temp; return temp;
}, },
systemMenu(state) { systemMenu(state) {
const { is_admin } = state.userInfo;
let temp = []; let temp = [];
state.menu?.forEach((e) => { state.menu?.forEach((e) => {
if (e.dict_group_id == "26d3903a-863e-4efc-b53e-0fb8772ddaa4") { if (e.dict_group_id == "26d3903a-863e-4efc-b53e-0fb8772ddaa4") {
// 业务系统用户和组织管理员配置了后台管理,将其隐藏
if (is_admin < 3 && e.menuName === "管理中心") {
return;
}
temp.push(e); temp.push(e);
} }
}); });
......
...@@ -153,7 +153,7 @@ const getUser = () => { ...@@ -153,7 +153,7 @@ const getUser = () => {
store.commit("setMenuObj", menuObj); store.commit("setMenuObj", menuObj);
// } // }
generateRoutes(); generateRoutes();
router.push("/"); router.push("/forewarning/list");
} }
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment