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