routes.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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: 'management-list',
  45. hideInMenu: true,
  46. access: 'authRouteFilter',
  47. component: './Project/Management/List'
  48. },
  49. {
  50. path: '/project/management/:id',
  51. name: 'management-detail',
  52. hideInMenu: true,
  53. access: 'authRouteFilter',
  54. component: './Project/Management/Detail'
  55. }
  56. ]
  57. },
  58. {
  59. path: '/project/approval',
  60. name: 'approval',
  61. // access: 'authRouteFilter',
  62. component: './Project/Approval'
  63. },
  64. {
  65. path: '/project/verification',
  66. name: 'verification',
  67. access: 'authRouteFilter',
  68. component: './Project/Verification'
  69. }
  70. ]
  71. },
  72. {
  73. path: 'institutions',
  74. name: 'institutions',
  75. icon: 'BankOutlined',
  76. routes: [
  77. {
  78. path: '/institutions',
  79. redirect: '/institutions/company'
  80. },
  81. {
  82. path: 'company',
  83. name: 'company',
  84. routes: [
  85. {
  86. path: '/institutions/company',
  87. redirect: '/institutions/company/list'
  88. },
  89. {
  90. path: 'list',
  91. name: 'company-list',
  92. access: 'authRouteFilter',
  93. hideInMenu: true,
  94. component: './Institutions/Company/List'
  95. },
  96. {
  97. path: ':id',
  98. name: 'company-detail',
  99. access: 'authRouteFilter',
  100. hideInMenu: true,
  101. component: './Institutions/Company/Detail'
  102. }
  103. ]
  104. },
  105. {
  106. path: 'staff',
  107. name: 'staff',
  108. access: 'authRouteFilter',
  109. component: './Institutions/Staff'
  110. },
  111. {
  112. path: 'restrict',
  113. name: 'restrict',
  114. access: 'authRouteFilter',
  115. component: './Institutions/Restrict'
  116. }
  117. ]
  118. },
  119. {
  120. path: 'business',
  121. name: 'business',
  122. icon: 'Audit',
  123. routes: [
  124. {
  125. path: '/business',
  126. redirect: '/business/inventory'
  127. },
  128. {
  129. path: 'inventory',
  130. name: 'inventory',
  131. access: 'authRouteFilter',
  132. component: './Business/Inventory'
  133. },
  134. {
  135. path: 'process',
  136. name: 'process',
  137. access: 'authRouteFilter',
  138. component: './Business/Process'
  139. }
  140. ]
  141. },
  142. {
  143. path: '/schema',
  144. name: 'schema',
  145. icon: 'ControlOutlined',
  146. routes: [
  147. {
  148. path: 'base',
  149. name: 'base',
  150. access: 'authRouteFilter',
  151. icon: 'icon-schema',
  152. component: './Schema/Base/index.tsx'
  153. },
  154. {
  155. path: 'base/:id',
  156. name: 'baseDetail',
  157. access: 'authRouteFilter',
  158. component: './Schema/Base/detail.tsx',
  159. hideInMenu: true
  160. },
  161. {
  162. path: 'option',
  163. name: 'option',
  164. access: 'authRouteFilter',
  165. component: './Schema/Option'
  166. },
  167. {
  168. path: 'budget',
  169. name: 'budget',
  170. access: 'authRouteFilter',
  171. component: './Schema/Budget'
  172. },
  173. {
  174. path: 'budget/:id',
  175. name: 'budgetDetail',
  176. component: './Schema/Budget/detail',
  177. hideInMenu: true
  178. }
  179. ]
  180. },
  181. {
  182. path: 'permission',
  183. name: 'permission',
  184. icon: 'UserOutlined',
  185. routes: [
  186. {
  187. path: '/permission',
  188. redirect: '/permission/role'
  189. },
  190. {
  191. path: 'role',
  192. name: 'role',
  193. access: 'authRouteFilter',
  194. component: './Permission/Role'
  195. }
  196. ]
  197. },
  198. {
  199. path: 'system',
  200. name: 'system',
  201. icon: 'SettingOutlined',
  202. routes: [
  203. {
  204. path: '/system',
  205. redirect: '/system/admin'
  206. },
  207. // {
  208. // path: 'setting',
  209. // name: 'setting',
  210. // component: './System/Setting'
  211. // },
  212. {
  213. path: 'admin',
  214. name: 'admin',
  215. access: 'authRouteFilter',
  216. component: './System/Admin'
  217. }
  218. ]
  219. },
  220. {
  221. component: './404'
  222. }
  223. ]