routes.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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: './user/Login'
  13. }
  14. ]
  15. },
  16. {
  17. component: './404'
  18. }
  19. ]
  20. },
  21. {
  22. path: '/',
  23. redirect: '/project/management'
  24. },
  25. {
  26. path: '/project',
  27. name: 'project',
  28. icon: 'AppstoreOutlined',
  29. routes: [
  30. {
  31. path: '/project',
  32. redirect: '/project/management'
  33. },
  34. {
  35. path: '/project/management',
  36. name: 'management',
  37. routes: [
  38. {
  39. path: '/project/management',
  40. redirect: '/project/management/list'
  41. },
  42. {
  43. path: '/project/management/list',
  44. name: 'list',
  45. hideInMenu: true,
  46. component: './Project/Management/List'
  47. },
  48. {
  49. path: '/project/management/:id',
  50. name: 'detail',
  51. hideInMenu: true,
  52. component: './Project/Management/Detail'
  53. }
  54. ]
  55. },
  56. {
  57. path: '/project/verification',
  58. name: 'verification',
  59. component: './Project/Verification'
  60. }
  61. ]
  62. },
  63. {
  64. path: 'institutions',
  65. name: 'institutions',
  66. icon: 'BankOutlined',
  67. routes: [
  68. {
  69. path: '/institutions',
  70. redirect: '/institutions/company'
  71. },
  72. {
  73. path: 'company',
  74. name: 'company',
  75. routes: [
  76. {
  77. path: '/institutions/company',
  78. redirect: '/institutions/company/list'
  79. },
  80. {
  81. path: 'list',
  82. name: 'list',
  83. hideInMenu: true,
  84. component: './Institutions/Company/List'
  85. },
  86. {
  87. path: ':id',
  88. name: 'detail',
  89. hideInMenu: true,
  90. component: './Institutions/Company/Detail'
  91. }
  92. ]
  93. },
  94. {
  95. path: 'staff',
  96. name: 'staff',
  97. component: './Institutions/Staff'
  98. },
  99. {
  100. path: 'restrict',
  101. name: 'restrict',
  102. component: './Institutions/Restrict'
  103. }
  104. ]
  105. },
  106. {
  107. path: 'business',
  108. name: 'business',
  109. icon: 'Audit',
  110. routes: [
  111. {
  112. path: '/business',
  113. redirect: '/business/inventory'
  114. },
  115. {
  116. path: 'inventory',
  117. name: 'inventory',
  118. component: './Business/Inventory'
  119. },
  120. {
  121. path: 'process',
  122. name: 'process',
  123. component: './Business/ProcessUser'
  124. }
  125. ]
  126. },
  127. {
  128. path: '/schema',
  129. name: 'schema',
  130. icon: 'ControlOutlined',
  131. routes: [
  132. {
  133. path: 'base',
  134. name: 'base',
  135. icon: 'icon-schema',
  136. component: './Schema/Base/index.tsx'
  137. },
  138. {
  139. path: 'base/:id',
  140. name: 'baseDetail',
  141. hideInMenu: true,
  142. component: './Schema/Base/detail.tsx'
  143. },
  144. {
  145. path: 'option',
  146. name: 'option',
  147. component: './Schema/Option'
  148. },
  149. {
  150. path: 'budget',
  151. name: 'budget',
  152. component: './Schema/Budget'
  153. }
  154. ]
  155. },
  156. {
  157. path: 'permission',
  158. name: 'permission',
  159. icon: 'UserOutlined',
  160. routes: [
  161. {
  162. path: '/permission',
  163. redirect: '/permission/role'
  164. },
  165. {
  166. path: 'role',
  167. name: 'role',
  168. component: './Permission/Role'
  169. }
  170. ]
  171. },
  172. {
  173. path: 'system',
  174. name: 'system',
  175. icon: 'SettingOutlined',
  176. routes: [
  177. {
  178. path: '/system',
  179. redirect: '/system/admin-update'
  180. },
  181. // {
  182. // path: 'setting',
  183. // name: 'setting',
  184. // component: './System/Setting'
  185. // },
  186. {
  187. path: 'admin',
  188. name: 'admin',
  189. component: './System/Admin'
  190. }
  191. ]
  192. },
  193. {
  194. component: './404'
  195. }
  196. ]