auth.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Layout */
  2. import Layout from '@/layout'
  3. // 授权管理页面
  4. const authRoutes = [
  5. {
  6. path: '/auth',
  7. component: Layout,
  8. alwaysShow: true,
  9. redirect: '/auth/list',
  10. name: 'Auth',
  11. meta: {
  12. title: '机构认证',
  13. icon: 'el-icon-s-custom',
  14. roles: ['admin', 'normal'],
  15. noCache: true,
  16. proxy: true,
  17. id: 1
  18. },
  19. children: [
  20. {
  21. path: 'list',
  22. component: () => import('@/views/authentic/auth/index'),
  23. name: 'AuthList',
  24. meta: {
  25. title: '机构列表',
  26. icon: 'el-icon-menu',
  27. roles: ['admin', 'normal'],
  28. affix: true,
  29. noCache: true,
  30. proxy: true,
  31. id: 2
  32. }
  33. },
  34. {
  35. path: 'auth-add',
  36. component: () => import('@/views/authentic/auth/add'),
  37. name: 'AuthAdd',
  38. hidden: true,
  39. meta: { title: '添加机构', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 3 }
  40. },
  41. {
  42. path: 'auth-edit',
  43. component: () => import('@/views/authentic/auth/edit'),
  44. name: 'AuthEdit',
  45. hidden: true,
  46. meta: { title: '修改机构', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 4 }
  47. },
  48. {
  49. path: 'user-list',
  50. component: () => import('@/views/authentic/auth/user/userList'),
  51. name: 'ClubUserList',
  52. hidden: true,
  53. meta: { title: '登录用户', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 5 }
  54. }
  55. ]
  56. }
  57. ]
  58. export default authRoutes