routes.js 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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: '/welcome',
  23. name: '工作台',
  24. icon: 'smile',
  25. component: './Welcome',
  26. },
  27. {
  28. path: '/admin',
  29. name: 'admin',
  30. icon: 'crown',
  31. access: 'canAdmin',
  32. component: './Admin',
  33. routes: [
  34. {
  35. path: '/admin/sub-page',
  36. name: 'sub-page',
  37. icon: 'smile',
  38. component: './Welcome',
  39. },
  40. {
  41. component: './404',
  42. },
  43. ],
  44. },
  45. {
  46. path: '/PlatformMessageManagement',
  47. name: '消息管理',
  48. icon: 'crown',
  49. component: '../layouts/BasicLayout',
  50. routes: [
  51. {
  52. path: '/PlatformMessageManagement/MessageManageList',
  53. name: '平台消息管理',
  54. icon: 'smile',
  55. component: './PlatformMessageManagement/MessageManageList',
  56. },
  57. {
  58. path: '/PlatformMessageManagement/MessageEdit',
  59. name: '消息查看',
  60. component: './PlatformMessageManagement/MessageEdit',
  61. hideInMenu: true,
  62. },
  63. ],
  64. },
  65. {
  66. path: '/Machinery',
  67. name: '农机管理',
  68. icon: 'InsertRowLeftOutlined',
  69. component: '../layouts/BasicLayout',
  70. routes: [
  71. {
  72. path: '/Machinery/Cooperative',
  73. name: '合作社列表',
  74. component: './Machinery/Cooperative',
  75. },
  76. {
  77. path: '/Machinery/Cooperative/edit.jsx',
  78. name: '合作社编辑',
  79. component: './Machinery/Cooperative/edit.jsx',
  80. hideInMenu: true,
  81. },
  82. ],
  83. },
  84. {
  85. path: '/MonitoringScreen',
  86. name: '农机监控大屏',
  87. icon: 'InsertRowLeftOutlined',
  88. component: '../layouts/BasicLayout',
  89. routes: [
  90. {
  91. path: '/MonitoringScreen/index.jsx',
  92. name: '农机监控大屏',
  93. component: './MonitoringScreen',
  94. },
  95. {
  96. path: '/MonitoringScreen/detail.jsx',
  97. name: '农机轨迹',
  98. component: './MonitoringScreen/detail.jsx',
  99. hideInMenu: true,
  100. },
  101. ],
  102. },
  103. {
  104. path: '/MachineryGIS',
  105. name: '农机GIS',
  106. icon: 'InsertRowLeftOutlined',
  107. component: '../layouts/BasicLayout',
  108. routes: [
  109. {
  110. path: '/MachineryGIS/index.jsx',
  111. name: '农机GIS',
  112. component: './MachineryGIS',
  113. },
  114. ],
  115. },
  116. {
  117. path: '/OrderManage',
  118. name: '订单调度',
  119. icon: 'InsertRowLeftOutlined',
  120. component: '../layouts/BasicLayout',
  121. routes: [
  122. {
  123. path: '/OrderManage/index.jsx',
  124. name: '订单调度',
  125. component: './OrderManage',
  126. },
  127. ],
  128. },
  129. {
  130. path: '/JobWarning',
  131. name: '作业预警',
  132. icon: 'InsertRowLeftOutlined',
  133. component: '../layouts/BasicLayout',
  134. routes: [
  135. {
  136. path: '/JobWarning/index.jsx',
  137. name: '作业预警',
  138. component: './JobWarning',
  139. },
  140. ],
  141. },
  142. {
  143. path: '/JobStatistics',
  144. name: '作业统计',
  145. icon: 'InsertRowLeftOutlined',
  146. component: '../layouts/BasicLayout',
  147. routes: [
  148. {
  149. path: '/JobStatistics/Machinery',
  150. name: '农机统计',
  151. component: './JobStatistics/Machinery',
  152. },
  153. {
  154. path: '/JobStatistics/Order',
  155. name: '订单统计',
  156. component: './JobStatistics/Order',
  157. },
  158. {
  159. path: '/JobStatistics/RevenueExpenditure',
  160. name: '收支统计',
  161. component: './JobStatistics/RevenueExpenditure',
  162. },
  163. ],
  164. },
  165. {
  166. path: '/Finance',
  167. name: '财务管理',
  168. icon: 'InsertRowLeftOutlined',
  169. component: '../layouts/BasicLayout',
  170. routes: [
  171. {
  172. path: '/Finance/AccountLog',
  173. name: '平台流水',
  174. component: './Finance/AccountLog',
  175. },
  176. {
  177. path: '/Finance/Withdrawal',
  178. name: '提现管理',
  179. component: './Finance/Withdrawal',
  180. },
  181. ],
  182. },
  183. {
  184. path: '/SystemManagement',
  185. name: '系统管理',
  186. icon: 'crown',
  187. component: '../layouts/BasicLayout',
  188. routes: [
  189. {
  190. path: '/SystemManagement/Administrator',
  191. name: '管理员',
  192. icon: 'smile',
  193. component: './SystemManagement/Administrator',
  194. },
  195. {
  196. path: '/SystemManagement/UserRights',
  197. name: '角色权限',
  198. component: './SystemManagement/UserRights',
  199. },
  200. {
  201. path: '/SystemManagement/BasicParameters',
  202. name: '基本参数',
  203. component: './SystemManagement/BasicParameters',
  204. },
  205. {
  206. path: '/SystemManagement/MapExtent',
  207. name: '区域设置',
  208. component: './SystemManagement/MapExtent',
  209. // hideInMenu: true
  210. },
  211. {
  212. path: '/SystemManagement/Agreement',
  213. name: '协议对接',
  214. component: './SystemManagement/Agreement',
  215. // hideInMenu: true
  216. },
  217. ],
  218. },
  219. {
  220. path: '/',
  221. redirect: '/welcome',
  222. },
  223. {
  224. component: './404',
  225. },
  226. ];