routes.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. },
  101. {
  102. path: 'business',
  103. name: 'business',
  104. icon: 'Audit',
  105. routes: [
  106. {
  107. path: '/business',
  108. redirect: '/business/inventory'
  109. },
  110. {
  111. path: 'inventory',
  112. name: 'inventory',
  113. component: './Business/Inventory'
  114. }
  115. ]
  116. },
  117. {
  118. path: '/work-setting',
  119. name: 'work-setting',
  120. icon: 'ControlOutlined',
  121. routes: [
  122. {
  123. path: 'schema',
  124. name: 'schema',
  125. icon: 'icon-schema',
  126. component: './Schema/Base/index.tsx'
  127. },
  128. {
  129. path: '/work-setting/schema/detail',
  130. name: 'schema-detail',
  131. hideInMenu: true,
  132. component: './Schema/Base/detail.tsx'
  133. },
  134. {
  135. path: 'option',
  136. name: 'option',
  137. component: './Schema/Option'
  138. },
  139. {
  140. path: 'budget',
  141. name: 'budget',
  142. component: './Schema/Budget'
  143. }
  144. ]
  145. },
  146. {
  147. path: 'permission',
  148. name: 'permission',
  149. icon: 'UserOutlined',
  150. routes: [
  151. {
  152. path: '/permission',
  153. redirect: '/permission/role'
  154. },
  155. {
  156. path: 'role',
  157. name: 'role',
  158. component: './Permission/Role'
  159. }
  160. ]
  161. },
  162. {
  163. path: 'system',
  164. name: 'system',
  165. icon: 'SettingOutlined',
  166. routes: [
  167. {
  168. path: '/system',
  169. redirect: '/system/admin-update'
  170. },
  171. // {
  172. // path: 'setting',
  173. // name: 'setting',
  174. // component: './System/Setting'
  175. // },
  176. {
  177. path: 'admin-update',
  178. name: 'admin-update',
  179. component: './System/AdminUpdate'
  180. }
  181. ]
  182. },
  183. {
  184. component: './404'
  185. }
  186. ]