Commit 220ee3d1 authored by 罗林杰's avatar 罗林杰

对普通用户隐藏员工信息

parent 04b4b578
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
margin-left: 1px; margin-left: 1px;
" "
index="/employee/employee" index="/employee/employee"
v-if="roles[0] === 'admin'"
> >
<i style="width: 10px; height: 10px; margin-top: -12px"></i> <i style="width: 10px; height: 10px; margin-top: -12px"></i>
员工信息 员工信息
...@@ -101,6 +102,7 @@ export default { ...@@ -101,6 +102,7 @@ export default {
components: { Menu }, components: { Menu },
data() { data() {
return { return {
roles: [],
backTag: false, backTag: false,
newTopNev: [ newTopNev: [
{ {
...@@ -197,6 +199,8 @@ export default { ...@@ -197,6 +199,8 @@ export default {
this.currentIndex = this.$route.path; this.currentIndex = this.$route.path;
this.$store.dispatch("app/toggleSideBarHide", true); this.$store.dispatch("app/toggleSideBarHide", true);
this.setVisibleNumber(); this.setVisibleNumber();
this.roles = this.$store.getters.roles;
}, },
created() { created() {
this.getinfo(); this.getinfo();
......
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