routes.js 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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: '/MonitoringScreen',
  29. layout: false,
  30. name: '数据大屏',
  31. icon: 'DesktopOutlined',
  32. component: './MonitoringScreen',
  33. access: 'screen',
  34. },
  35. {
  36. path: '/ContentManagementSystem',
  37. name: 'CMS管理',
  38. icon: 'MediumOutlined',
  39. component: '../layouts/BasicLayout',
  40. access: 'cms',
  41. routes: [
  42. {
  43. path: '/ContentManagementSystem/InformationClassification',
  44. name: '资讯分类',
  45. access: 'cmstype',
  46. component: './ContentManagementSystem/InformationClassification',
  47. },
  48. {
  49. path: '/ContentManagementSystem/InformationList',
  50. name: '资讯列表',
  51. access: 'news',
  52. component: './ContentManagementSystem/InformationList',
  53. },
  54. {
  55. path: '/ContentManagementSystem/InformationList/edit.jsx',
  56. name: '资讯列表编辑',
  57. component: './ContentManagementSystem/InformationList/edit.jsx',
  58. hideInMenu: true,
  59. },
  60. {
  61. path: '/ContentManagementSystem/Advertisement',
  62. name: '广告位管理',
  63. access: 'banner',
  64. component: './ContentManagementSystem/Advertisement',
  65. },
  66. {
  67. path: '/ContentManagementSystem/Advertisement/edit.jsx',
  68. name: '广告位编辑',
  69. component: './ContentManagementSystem/Advertisement/edit.jsx',
  70. hideInMenu: true,
  71. },
  72. ],
  73. },
  74. {
  75. path: '/Machinery',
  76. name: '农机管理',
  77. icon: 'CarOutlined',
  78. access: 'agricultural',
  79. component: '../layouts/BasicLayout',
  80. routes: [
  81. {
  82. path: '/Machinery/Org',
  83. name: '合作社列表',
  84. access: 'org',
  85. component: './Machinery/Org',
  86. },
  87. {
  88. path: '/Machinery/Person',
  89. name: '人员管理',
  90. access: 'user',
  91. component: './Machinery/Person',
  92. },
  93. {
  94. path: '/Machinery/MachineryType',
  95. name: '分类管理',
  96. access: 'machinetype',
  97. component: './Machinery/MachineryType',
  98. },
  99. {
  100. path: '/Machinery/Machinery',
  101. name: '农机列表',
  102. access: 'machinery',
  103. component: './Machinery/Machinery',
  104. },
  105. {
  106. path: '/Machinery/Machinery/edit.jsx',
  107. name: '农机编辑',
  108. component: './Machinery/Machinery/edit.jsx',
  109. hideInMenu: true,
  110. },
  111. {
  112. path: '/Machinery/GPS',
  113. name: '设备管理',
  114. access: 'device',
  115. component: './Machinery/GPS',
  116. },
  117. {
  118. path: '/Machinery/GPS/edit.jsx',
  119. name: '设备编辑',
  120. component: './Machinery/GPS/edit.jsx',
  121. hideInMenu: true,
  122. },
  123. {
  124. path: '/Machinery/GIS',
  125. name: '农机GIS',
  126. access: 'gis',
  127. component: './Machinery/GIS',
  128. },
  129. ],
  130. },
  131. {
  132. path: '/OrderManage',
  133. name: '订单调度',
  134. access: 'order',
  135. icon: 'PhoneOutlined',
  136. component: '../layouts/BasicLayout',
  137. routes: [
  138. {
  139. path: '/OrderManage/index.jsx',
  140. name: '订单调度',
  141. access: 'orderjob',
  142. component: './OrderManage',
  143. },
  144. {
  145. path: '/OrderManage/dispatch.jsx',
  146. name: '调度详情',
  147. access: 'orderjob',
  148. component: './OrderManage/dispatch.jsx',
  149. hideInMenu: true,
  150. },
  151. {
  152. path: '/OrderManage/OrderList/index.jsx',
  153. name: '订单列表',
  154. access: 'orderList',
  155. component: './OrderManage/OrderList',
  156. },
  157. {
  158. path: '/OrderManage/JobWarning/index.jsx',
  159. name: '预警监管',
  160. access: 'orderwarning',
  161. component: './OrderManage/JobWarning',
  162. },
  163. {
  164. path: '/OrderManage/JobWarning/detail.jsx',
  165. name: '订单详情',
  166. access: 'orderwarning',
  167. component: './OrderManage/JobWarning/detail.jsx',
  168. hideInMenu: true,
  169. },
  170. ],
  171. },
  172. {
  173. path: '/JobStatistics',
  174. name: '作业统计',
  175. access: 'statis',
  176. icon: 'ScheduleOutlined',
  177. component: '../layouts/BasicLayout',
  178. routes: [
  179. {
  180. path: '/JobStatistics/Order',
  181. name: '订单统计',
  182. access: 'st-order',
  183. component: './JobStatistics/Order',
  184. },
  185. {
  186. path: '/JobStatistics/Job',
  187. name: '作业统计',
  188. access: 'st-work',
  189. component: './JobStatistics/Job',
  190. },
  191. // {
  192. // path: '/JobStatistics/RevenueExpenditure',
  193. // name: '收支统计',
  194. // access: 'st-finance',
  195. // component: './JobStatistics/RevenueExpenditure',
  196. // },
  197. ],
  198. },
  199. {
  200. path: '/Finance',
  201. name: '财务管理',
  202. access: 'finance',
  203. icon: 'DollarOutlined',
  204. component: '../layouts/BasicLayout',
  205. routes: [
  206. {
  207. path: '/Finance/AccountLog',
  208. name: '平台流水',
  209. access: 'fi-system',
  210. component: './Finance/AccountLog',
  211. },
  212. {
  213. path: '/Finance/Withdrawal',
  214. name: '提现管理',
  215. access: 'fi-withdraw',
  216. component: './Finance/Withdrawal',
  217. },
  218. ],
  219. },
  220. {
  221. path: '/PlatformMessageManagement',
  222. name: '消息管理',
  223. icon: 'MailOutlined',
  224. access: 'message',
  225. component: '../layouts/BasicLayout',
  226. routes: [
  227. {
  228. path: '/PlatformMessageManagement/MessageManageList',
  229. name: '平台消息',
  230. access: 'sys-message',
  231. icon: 'smile',
  232. component: './PlatformMessageManagement/MessageManageList',
  233. },
  234. {
  235. path: '/PlatformMessageManagement/MessageEdit',
  236. name: '消息查看',
  237. component: './PlatformMessageManagement/MessageEdit',
  238. hideInMenu: true,
  239. },
  240. ],
  241. },
  242. {
  243. path: '/Feedback',
  244. name: '意见反馈',
  245. icon: 'MessageOutlined',
  246. component: './Feedback',
  247. access: 'feedback',
  248. },
  249. {
  250. path: '/SystemManagement',
  251. name: '系统管理',
  252. icon: 'SettingOutlined',
  253. access: 'system',
  254. component: '../layouts/BasicLayout',
  255. routes: [
  256. {
  257. path: '/SystemManagement/Region',
  258. name: '区域设置',
  259. access: 'region',
  260. component: './SystemManagement/Region',
  261. },
  262. {
  263. path: '/SystemManagement/UserRights',
  264. name: '角色管理',
  265. access: 'role',
  266. component: './SystemManagement/UserRights',
  267. },
  268. {
  269. path: '/SystemManagement/BasicParameters',
  270. name: '基本参数',
  271. access: 'setting',
  272. component: './SystemManagement/BasicParameters',
  273. },
  274. ],
  275. },
  276. {
  277. path: '/',
  278. redirect: '/welcome',
  279. },
  280. {
  281. component: './404',
  282. },
  283. ];