personnel.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw = {
  4. path: '/personnel',
  5. component: Layout,
  6. redirect: '/personnel/member',
  7. name: 'Personnel',
  8. meta: {
  9. title: '组织架构',
  10. },
  11. children: [
  12. {
  13. path: 'member',
  14. name: 'personnelMember',
  15. component: () => import('@/views/personnel/memberManagement.vue'),
  16. meta: {
  17. title: '成员管理',
  18. },
  19. children:[
  20. {
  21. path: 'memberMessage',
  22. name: 'personnelMemberMessage',
  23. component: () => import('@/views/personnel/modules/memberMessage.vue'),
  24. meta: {
  25. title: '成员详情',
  26. menu:false,
  27. activeMenu: '/personnel/member',
  28. },
  29. },
  30. {
  31. path: 'memberEdit',
  32. name: 'personnelMemberEdit',
  33. component: () => import('@/views/personnel/modules/addOperation.vue'),
  34. meta: {
  35. title: '成员添加',
  36. menu:false,
  37. activeMenu: '/personnel/member',
  38. },
  39. },
  40. ]
  41. },
  42. {
  43. path: 'institution',
  44. name: 'personnelInstitution',
  45. component: () => import('@/views/personnel/institutionManage.vue'),
  46. meta: {
  47. title: '机构管理',
  48. },
  49. children:[
  50. {
  51. path: 'institutionEdit',
  52. name: 'personnelInstitutionEdit',
  53. component: () => import('@/views/personnel/modules/editInstitution.vue'),
  54. meta: {
  55. title: '机构管理',
  56. menu:false
  57. },
  58. },
  59. ]
  60. },
  61. {
  62. path: 'role',
  63. name: 'personnelRole',
  64. component: () => import('@/views/personnel/roleManagement.vue'),
  65. meta: {
  66. title: '角色管理',
  67. // auth:['role.add','role.view','role.delete','role.edit']
  68. },
  69. },
  70. ],
  71. }
  72. export default routes