guhongwei il y a 3 ans
Parent
commit
814e3c3e09
2 fichiers modifiés avec 1 ajouts et 20 suppressions
  1. 1 1
      src/components/admin-frame/Sidebar.vue
  2. 0 19
      src/layout/deploy/menu.js

+ 1 - 1
src/components/admin-frame/Sidebar.vue

@@ -67,7 +67,7 @@ export default {
   methods: {
     getMenu() {
       let list = _.cloneDeep(this.items);
-      if (this.user.role === '1') list.push(...adminMenu);
+      if (this.user.role && this.user.role === '1') list.push(...adminMenu);
       else list.push(...jgxx);
       this.$set(this, `items`, _.uniqBy(list, 'index'));
     },

+ 0 - 19
src/layout/deploy/menu.js

@@ -2,27 +2,8 @@ export const adminMenu = [
   { icon: 'icon-shouye', index: '/adminCenter/homeIndex', title: '系统首页' },
   { icon: 'icon-jigou', index: '/adminCenter/mechanism/index', title: '机构用户管理' },
   { icon: 'icon-yonghu', index: '/adminCenter/users/index', title: '平台用户管理' },
-  { icon: 'icon-xiaoxi', index: '/adminCenter/message/index', title: '我的消息' },
-  {
-    icon: 'icon-shenqing',
-    index: '/adminCenter/disclosure/index',
-    title: '申请管理',
-    // subs: [
-    //   { icon: 'icon-shouye', index: '/adminCenter/disclosure/index', title: '交底书管理' },
-    //   { icon: 'icon-shouye', index: '/adminCenter/disclosure/evaluate', title: '预评估' },
-    // ],
-  },
-  { icon: 'icon-zhuanli', index: '/adminCenter/patent/index', title: '专利管理' },
-  { icon: 'icon-jiaoyi', index: '/adminCenter/trade/index', title: '交易管理' },
-  { icon: 'icon-shouye', index: '/adminCenter/statistics/index', title: '统计' },
 ];
 export const jgxx = [
   { icon: 'icon-shouye', index: '/jg/homeIndex', title: '系统首页' },
   { icon: 'icon-yonghu', index: '/jg/users/index', title: '平台用户管理' },
-  { icon: 'icon-xiaoxi', index: '/jg/message/index', title: '我的消息' },
-  { icon: 'icon-shenqing', index: '/jg/disclosure/index', title: '申请管理' },
-  { icon: 'icon-zhuanli', index: '/jg/patent/index', title: '专利管理' },
-
-  { icon: 'icon-jiaoyi', index: '/jg/trade/index', title: '交易管理' },
-  { icon: 'icon-shouye', index: '/jg/statistics/index', title: '统计' },
 ];