routes.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. export default [
  2. {
  3. path: '/order',
  4. component: './Order/Billing',
  5. access: 'billing',
  6. },
  7. // 权限管理
  8. {
  9. path: '/jurisdiction',
  10. component: './admin/user/jurisdiction',
  11. access: 'jurisdiction',
  12. },
  13. // 角色管理
  14. {
  15. path: '/roleManage',
  16. component: './admin/user/roleManage',
  17. access: 'roleManage',
  18. },
  19. // 管理员列表
  20. {
  21. path: '/administrators',
  22. component: './admin/user/administrators',
  23. access: 'administrators',
  24. },
  25. // 业务分类管理
  26. {
  27. path: '/category',
  28. component: './admin/business/category',
  29. access: 'category',
  30. },
  31. // 业务项目管理
  32. {
  33. path: '/project',
  34. component: './admin/business/project',
  35. access: 'project',
  36. },
  37. // 业务项目查询
  38. {
  39. path: '/projectQuery/:isReadOnly',
  40. component: './admin/business/project',
  41. access: 'projectReadOnly',
  42. },
  43. // 组织机构
  44. {
  45. path: '/mechanism',
  46. component: './admin/organization/mechanism',
  47. access: 'mechanism',
  48. },
  49. // 人事档案
  50. {
  51. path: '/statistics',
  52. component: './personnel/archives/statistics',
  53. // access: 'statistics',
  54. },
  55. {
  56. path: '/welcome',
  57. name: 'welcome',
  58. component: './Welcome',
  59. access: 'welcome',
  60. },
  61. {
  62. path: '/',
  63. redirect: '/welcome',
  64. },
  65. {
  66. path: '/user',
  67. layout: false,
  68. routes: [
  69. {
  70. path: '/user',
  71. routes: [
  72. {
  73. name: 'login',
  74. path: '/user/login',
  75. component: './user/login',
  76. },
  77. ],
  78. },
  79. ],
  80. },
  81. {
  82. component: './404',
  83. },
  84. ];