routes.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: '@/pages/user/Login',
  13. },
  14. ],
  15. },
  16. {
  17. component: '@/pages/404',
  18. },
  19. ],
  20. },
  21. {
  22. path: '/dashboard',
  23. name: '工作台',
  24. icon: 'DashboardOutlined',
  25. component: './dashboard',
  26. },
  27. {
  28. path: '/',
  29. name: '工作台',//暂定
  30. redirect: '/person',
  31. hideInMenu: true,
  32. },
  33. {
  34. path: '/banner',
  35. name: '轮播图列表',
  36. icon: 'PictureOutlined',
  37. component: '@/pages/banner',
  38. },
  39. {
  40. path: '/banner/edit.jsx',
  41. name: '轮播图编辑',
  42. hideInMenu: true,
  43. component: '@/pages/banner/edit.jsx',
  44. },
  45. {
  46. path: '/notice',
  47. name: '通知列表',
  48. icon: 'BellOutlined',
  49. component: '@/pages/notice',
  50. },
  51. {
  52. path: '/notice/edit.jsx',
  53. name: '通知编辑',
  54. hideInMenu: true,
  55. component: '@/pages/notice/edit.jsx',
  56. },
  57. {
  58. path: '/applicationList',
  59. name: '申请列表',
  60. icon: 'FieldTimeOutlined',
  61. component: '@/pages/applicationList',
  62. },
  63. {
  64. path: '/applicationList/detail.jsx',
  65. name: '申请详情',
  66. hideInMenu: true,
  67. icon: 'apartment',
  68. component: '@/pages/applicationList/detail.jsx',
  69. },
  70. {
  71. path: '/examine',
  72. name: '审核列表',
  73. icon: 'AuditOutlined',
  74. component: '@/pages/examine',
  75. },
  76. {
  77. path: '/examine/detail.jsx',
  78. name: '犬证审核',
  79. hideInMenu: true,
  80. icon: 'apartment',
  81. component: '@/pages/examine/detail.jsx',
  82. },
  83. {
  84. path: '/certificateIssuance',
  85. name: '证件发放',
  86. icon: 'IdcardOutlined',
  87. component: '@/pages/certificateIssuance',
  88. },
  89. {
  90. path: '/userList',
  91. name: '用户注册列表',
  92. icon: 'SolutionOutlined',
  93. component: '@/pages/userList',
  94. },
  95. {
  96. path: '/person',
  97. name: '人员列表',
  98. icon: 'UserOutlined',
  99. component: '@/pages/person',
  100. },
  101. {
  102. path: '/BasicParameters',
  103. name: '系统参数',
  104. icon: 'SettingOutlined',
  105. component: '@/pages/BasicParameters',
  106. },
  107. {
  108. path: '/',
  109. redirect: '/welcome',
  110. },
  111. {
  112. component: './404',
  113. },
  114. ];