routes.js 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. path: '/Machinery/Employees',
  84. name: '员工列表',
  85. component: './Machinery/Employees',
  86. },
  87. {
  88. path: '/Machinery/Employees/edit.jsx',
  89. name: '员工编辑',
  90. component: './Machinery/Employees/edit.jsx',
  91. hideInMenu: true,
  92. },
  93. ],
  94. },
  95. {
  96. path: '/MonitoringScreen',
  97. name: '农机监控大屏',
  98. icon: 'InsertRowLeftOutlined',
  99. component: '../layouts/BasicLayout',
  100. routes: [
  101. {
  102. path: '/MonitoringScreen/index.jsx',
  103. name: '农机监控大屏',
  104. component: './MonitoringScreen',
  105. },
  106. {
  107. path: '/MonitoringScreen/detail.jsx',
  108. name: '农机轨迹',
  109. component: './MonitoringScreen/detail.jsx',
  110. hideInMenu: true,
  111. },
  112. ],
  113. },
  114. {
  115. path: '/MachineryGIS',
  116. name: '农机GIS',
  117. icon: 'InsertRowLeftOutlined',
  118. component: '../layouts/BasicLayout',
  119. routes: [
  120. {
  121. path: '/MachineryGIS/index.jsx',
  122. name: '农机GIS',
  123. component: './MachineryGIS',
  124. },
  125. ],
  126. },
  127. {
  128. path: '/OrderManage',
  129. name: '订单调度',
  130. icon: 'InsertRowLeftOutlined',
  131. component: '../layouts/BasicLayout',
  132. routes: [
  133. {
  134. path: '/OrderManage/index.jsx',
  135. name: '订单调度',
  136. component: './OrderManage',
  137. },
  138. ],
  139. },
  140. {
  141. path: '/JobWarning',
  142. name: '作业预警',
  143. icon: 'InsertRowLeftOutlined',
  144. component: '../layouts/BasicLayout',
  145. routes: [
  146. {
  147. path: '/JobWarning/index.jsx',
  148. name: '作业预警',
  149. component: './JobWarning',
  150. },
  151. ],
  152. },
  153. {
  154. path: '/JobStatistics',
  155. name: '作业统计',
  156. icon: 'InsertRowLeftOutlined',
  157. component: '../layouts/BasicLayout',
  158. routes: [
  159. {
  160. path: '/JobStatistics/Machinery',
  161. name: '农机统计',
  162. component: './JobStatistics/Machinery',
  163. },
  164. {
  165. path: '/JobStatistics/Order',
  166. name: '订单统计',
  167. component: './JobStatistics/Order',
  168. },
  169. {
  170. path: '/JobStatistics/RevenueExpenditure',
  171. name: '收支统计',
  172. component: './JobStatistics/RevenueExpenditure',
  173. },
  174. ],
  175. },
  176. {
  177. path: '/Finance',
  178. name: '财务管理',
  179. icon: 'InsertRowLeftOutlined',
  180. component: '../layouts/BasicLayout',
  181. routes: [
  182. {
  183. path: '/Finance/AccountLog',
  184. name: '平台流水',
  185. component: './Finance/AccountLog',
  186. },
  187. {
  188. path: '/Finance/Withdrawal',
  189. name: '提现管理',
  190. component: './Finance/Withdrawal',
  191. },
  192. ],
  193. },
  194. {
  195. path: '/SystemManagement',
  196. name: '系统管理',
  197. icon: 'crown',
  198. component: '../layouts/BasicLayout',
  199. routes: [
  200. {
  201. path: '/SystemManagement/Administrator',
  202. name: '管理员',
  203. icon: 'smile',
  204. component: './SystemManagement/Administrator',
  205. },
  206. {
  207. path: '/SystemManagement/Administrator/AdminEdit',
  208. name: '管理员编辑页',
  209. icon: 'smile',
  210. component: './SystemManagement/Administrator/AdminEdit',
  211. hideInMenu: true,
  212. },
  213. {
  214. path: '/SystemManagement/UserRights',
  215. name: '角色权限',
  216. component: './SystemManagement/UserRights',
  217. },
  218. {
  219. path: '/SystemManagement/BasicParameters',
  220. name: '基本参数',
  221. component: './SystemManagement/BasicParameters',
  222. },
  223. {
  224. path: '/SystemManagement/MapExtent',
  225. name: '区域设置',
  226. component: './SystemManagement/MapExtent',
  227. // hideInMenu: true
  228. },
  229. {
  230. path: '/SystemManagement/Agreement',
  231. name: '协议对接',
  232. component: './SystemManagement/Agreement',
  233. // hideInMenu: true
  234. },
  235. ],
  236. },
  237. {
  238. path: '/',
  239. redirect: '/welcome',
  240. },
  241. {
  242. component: './404',
  243. },
  244. ];