Commit 026097db authored by 徐一鸣's avatar 徐一鸣

权限管理fixed

parent 4dd85925
<template>
<div class="fwgl_container">
<side-nav-bar
v-if="showNavbar"
title="权限管理"
:title-icon="require('@/assets/imgs/tool_quanxian.png')"
:nav-list="navList"
......@@ -39,6 +40,7 @@ export default {
},
],
navList: [],
showNavbar: false,
}),
watch: {
"$route.fullPath"(path) {
......@@ -57,17 +59,20 @@ export default {
const userLevel = this.$store.getters.level;
if (userLevel === 2) {
this.initNavList();
} else {
if (userLevel == 0) {
this.$message({
message: `您没有权限管理模块的权限.`,
type: "warning",
});
this.$router.push(`/index`);
}
} else if (userLevel == 1) {
this.$router.push(
`/authority/organization/detail/${data.data.department_id}`
);
} else {
console.log(data.errMsg);
this.showNavbar = true;
this.initNavList();
}
}
});
},
......
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