routes.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. access:'admin',
  25. icon: 'DashboardOutlined',
  26. component: './dashboard',
  27. },
  28. {
  29. path: '/',
  30. name: '工作台',//暂定
  31. access:'admin',
  32. redirect: '/person',
  33. hideInMenu: true,
  34. },
  35. {
  36. path: '/banner',
  37. name: '轮播图列表',
  38. access:'admin',
  39. icon: 'PictureOutlined',
  40. component: '@/pages/banner',
  41. },
  42. {
  43. path: '/banner/edit.jsx',
  44. name: '轮播图编辑',
  45. hideInMenu: true,
  46. component: '@/pages/banner/edit.jsx',
  47. },
  48. {
  49. path: '/notice',
  50. name: '通知列表',
  51. access:'admin',
  52. icon: 'BellOutlined',
  53. component: '@/pages/notice',
  54. },
  55. {
  56. path: '/notice/edit.jsx',
  57. name: '通知编辑',
  58. hideInMenu: true,
  59. component: '@/pages/notice/edit.jsx',
  60. },
  61. {
  62. path: '/applicationList',
  63. name: '申请列表',
  64. access:'admin',
  65. icon: 'FieldTimeOutlined',
  66. component: '@/pages/applicationList',
  67. },
  68. {
  69. path: '/applicationList/detail.jsx',
  70. name: '申请详情',
  71. hideInMenu: true,
  72. component: '@/pages/applicationList/detail.jsx',
  73. },
  74. {
  75. path: '/examine',
  76. name: '审核列表',
  77. access:'auditor',
  78. icon: 'AuditOutlined',
  79. component: '@/pages/examine',
  80. },
  81. {
  82. path: '/examine/detail.jsx',
  83. name: '犬证审核',
  84. hideInMenu: true,
  85. component: '@/pages/examine/detail.jsx',
  86. },
  87. {
  88. path: '/certificateIssuance',
  89. name: '证件发放',
  90. access:'maker',
  91. icon: 'FileDoneOutlined',
  92. component: '@/pages/certificateIssuance',
  93. },
  94. {
  95. path: '/certificateIssuance/issuance.jsx',
  96. name: '证件发放详情',
  97. hideInMenu: true,
  98. component: '@/pages/certificateIssuance/issuance.jsx',
  99. },
  100. {
  101. path: '/cardNoList',
  102. name: '证件制卡',
  103. access:'admin',
  104. icon: 'CreditCardOutlined',
  105. component: '@/pages/cardNoList',
  106. },
  107. {
  108. path: '/cardList',
  109. name: '证件列表',
  110. access:'admin',
  111. icon: 'IdcardOutlined',
  112. component: '@/pages/cardList',
  113. },
  114. {
  115. path: '/cardList/detail.jsx',
  116. name: '证件详情',
  117. access:'admin',
  118. hideInMenu: true,
  119. component: '@/pages/cardList/detail.jsx',
  120. },
  121. {
  122. path: '/userList',
  123. name: '犬主列表',
  124. access:'admin',
  125. icon: 'SolutionOutlined',
  126. component: '@/pages/userList',
  127. },
  128. {
  129. path: '/person',
  130. name: '人员列表',
  131. access:'admin',
  132. icon: 'UserOutlined',
  133. component: '@/pages/person',
  134. },
  135. {
  136. path: '/BasicParameters',
  137. name: '系统参数',
  138. access:'admin',
  139. icon: 'SettingOutlined',
  140. component: '@/pages/BasicParameters',
  141. },
  142. {
  143. path: '/',
  144. redirect: '/welcome',
  145. },
  146. {
  147. component: './404',
  148. },
  149. ];