routes.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: '/dashboard',
  27. // name: 'dashboard',
  28. // icon: 'icon-shouye',
  29. // component: './Dashboard'
  30. // },
  31. {
  32. path: '/project',
  33. name: 'project',
  34. icon: 'AppstoreOutlined',
  35. routes: [
  36. {
  37. path: '/project',
  38. redirect: '/project/management'
  39. },
  40. {
  41. path: '/project/management',
  42. name: 'management',
  43. routes: [
  44. {
  45. path: '/project/management',
  46. redirect: '/project/management/list'
  47. },
  48. {
  49. path: '/project/management/list',
  50. name: 'list',
  51. hideInMenu: true,
  52. component: './Project/Management/List'
  53. },
  54. {
  55. path: '/project/management/detail',
  56. name: 'detail',
  57. hideInMenu: true,
  58. component: './Project/Management/Detail'
  59. }
  60. ]
  61. },
  62. {
  63. path: '/project/verification',
  64. name: 'verification',
  65. component: './Project/Verification'
  66. },
  67. {
  68. path: '/project/created',
  69. name: 'created',
  70. component: './Project/Created'
  71. }
  72. ]
  73. },
  74. {
  75. path: 'institutions',
  76. name: 'institutions',
  77. icon: 'BankOutlined',
  78. routes: [
  79. {
  80. path: '/institutions',
  81. redirect: '/institutions/company'
  82. },
  83. {
  84. path: 'company',
  85. name: 'company',
  86. routes: [
  87. {
  88. path: '/institutions/company',
  89. redirect: '/institutions/company/list'
  90. },
  91. {
  92. path: 'list',
  93. name: 'list',
  94. hideInMenu: true,
  95. component: './Institutions/Company/List'
  96. },
  97. {
  98. path: 'detail',
  99. name: 'detail',
  100. hideInMenu: true,
  101. component: './Institutions/Company/Detail'
  102. }
  103. ]
  104. },
  105. {
  106. path: 'staff',
  107. name: 'staff',
  108. component: './Institutions/Staff'
  109. }
  110. ]
  111. },
  112. {
  113. path: '/work-setting',
  114. name: 'work-setting',
  115. icon: 'ControlOutlined',
  116. routes: [
  117. {
  118. path: 'schema',
  119. name: 'schema',
  120. icon: 'icon-schema',
  121. component: './Schema/Base/index.tsx'
  122. },
  123. // {
  124. // path: 'test',
  125. // name: 'test',
  126. // layout: false,
  127. // component: './Schema/Designable/index.tsx'
  128. // },
  129. {
  130. path: '/work-setting/schema/detail',
  131. name: 'schema-detail',
  132. hideInMenu: true,
  133. component: './Schema/Base/detail.tsx'
  134. }
  135. ]
  136. },
  137. {
  138. path: 'system',
  139. name: 'system',
  140. icon: 'SettingOutlined',
  141. routes: [
  142. {
  143. path: '/system',
  144. redirect: '/system/admin-update'
  145. },
  146. // {
  147. // path: 'setting',
  148. // name: 'setting',
  149. // component: './System/Setting'
  150. // },
  151. {
  152. path: 'admin-update',
  153. name: 'admin-update',
  154. component: './System/AdminUpdate'
  155. }
  156. ]
  157. },
  158. {
  159. component: './404'
  160. }
  161. ]