routes.js 3.0KB

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