routes.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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: '作业大屏',
  39. icon: 'DesktopOutlined',
  40. component: './MonitoringScreen2',
  41. access: 'screen2',
  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. hideInMenu: true,
  140. },
  141. {
  142. path: '/Machinery/GIS/detail.jsx',
  143. name: 'GIS详情',
  144. component: './Machinery/GIS/detail.jsx',
  145. hideInMenu: true,
  146. },
  147. ],
  148. },
  149. {
  150. path: '/iot',
  151. name: 'IOT平台',
  152. component: '../layouts/BasicLayout',
  153. access: 'iot',
  154. routes: [
  155. {
  156. path: '/iot/Sensing',
  157. name: '传感设备列表',
  158. component: './Machinery/Sensing',
  159. access: 'sensorList',
  160. },
  161. {
  162. path: '/iot/JobList',
  163. name: '设备作业列表',
  164. component: './Machinery/JobList',
  165. access: 'deviceJobList',
  166. },
  167. {
  168. path: '/iot/OperationStatistics',
  169. name: '设备作业统计',
  170. component: './Machinery/OperationStatistics',
  171. access: 'deviceJobStatis',
  172. },
  173. {
  174. path: '/iot/OperationStatistics/Detail',
  175. name: '设备作业详情',
  176. component: './Machinery/OperationStatistics/Detail',
  177. access: 'deviceJobDetail',
  178. hideInMenu: true,
  179. },
  180. {
  181. path: '/iot/Subsoiler',
  182. name: '深松机',
  183. component: './SystemManagement/Subsoiler',
  184. access: 'shensong',
  185. },
  186. {
  187. path: '/iot/Classification',
  188. name: '外设分类',
  189. component: './SystemManagement/Classification',
  190. access: 'peripherals',
  191. },
  192. ],
  193. },
  194. {
  195. path: '/OrderManage',
  196. name: '订单调度',
  197. access: 'order',
  198. icon: 'PhoneOutlined',
  199. component: '../layouts/BasicLayout',
  200. routes: [
  201. {
  202. path: '/OrderManage/index.jsx',
  203. name: '订单调度',
  204. access: 'orderjob',
  205. component: './OrderManage',
  206. },
  207. {
  208. path: '/OrderManage/dispatch.jsx',
  209. name: '调度详情',
  210. access: 'orderjob',
  211. component: './OrderManage/dispatch.jsx',
  212. hideInMenu: true,
  213. },
  214. {
  215. path: '/OrderManage/OrderList/index.jsx',
  216. name: '订单列表',
  217. access: 'orderList',
  218. component: './OrderManage/OrderList',
  219. },
  220. {
  221. path: '/OrderManage/JobWarning/index.jsx',
  222. name: '预警监管',
  223. access: 'orderwarning',
  224. component: './OrderManage/JobWarning',
  225. },
  226. {
  227. path: '/OrderManage/JobWarning/detail.jsx',
  228. name: '订单详情',
  229. access: 'orderwarning',
  230. component: './OrderManage/JobWarning/detail.jsx',
  231. hideInMenu: true,
  232. },
  233. ],
  234. },
  235. {
  236. path: '/JobStatistics',
  237. name: '作业统计',
  238. access: 'statis',
  239. icon: 'ScheduleOutlined',
  240. component: '../layouts/BasicLayout',
  241. routes: [
  242. {
  243. path: '/JobStatistics/Order',
  244. name: '订单统计',
  245. access: 'st-order',
  246. component: './JobStatistics/Order',
  247. },
  248. {
  249. path: '/JobStatistics/Job',
  250. name: '作业统计',
  251. access: 'st-work',
  252. component: './JobStatistics/Job',
  253. },
  254. ],
  255. },
  256. {
  257. path: '/Finance',
  258. name: '财务管理',
  259. access: 'finance',
  260. icon: 'DollarOutlined',
  261. component: '../layouts/BasicLayout',
  262. routes: [
  263. {
  264. path: '/Finance/AccountLog',
  265. name: '平台流水',
  266. access: 'fi-system',
  267. component: './Finance/AccountLog',
  268. },
  269. {
  270. path: '/Finance/Withdrawal',
  271. name: '提现管理',
  272. access: 'fi-withdraw',
  273. component: './Finance/Withdrawal',
  274. },
  275. {
  276. path: '/Finance/Withdrawal/audit.jsx',
  277. name: '提现审批',
  278. component: './Finance/Withdrawal/audit.jsx',
  279. hideInMenu: true,
  280. },
  281. ],
  282. },
  283. {
  284. path: '/PlatformMessageManagement',
  285. name: '消息管理',
  286. icon: 'MailOutlined',
  287. access: 'message',
  288. component: '../layouts/BasicLayout',
  289. routes: [
  290. {
  291. path: '/PlatformMessageManagement/MessageManageList',
  292. name: '平台消息',
  293. access: 'sys-message',
  294. icon: 'smile',
  295. component: './PlatformMessageManagement/MessageManageList',
  296. },
  297. {
  298. path: '/PlatformMessageManagement/MessageEdit',
  299. name: '消息查看',
  300. component: './PlatformMessageManagement/MessageEdit',
  301. hideInMenu: true,
  302. },
  303. ],
  304. },
  305. {
  306. path: '/Feedback',
  307. name: '意见反馈',
  308. icon: 'MessageOutlined',
  309. component: './Feedback',
  310. access: 'feedback',
  311. },
  312. {
  313. path: '/SystemManagement',
  314. name: '系统管理',
  315. icon: 'SettingOutlined',
  316. access: 'system',
  317. component: '../layouts/BasicLayout',
  318. routes: [
  319. {
  320. path: '/SystemManagement/Region',
  321. name: '区域设置',
  322. access: 'region',
  323. component: './SystemManagement/Region',
  324. },
  325. {
  326. path: '/SystemManagement/UserRights',
  327. name: '角色管理',
  328. access: 'role',
  329. component: './SystemManagement/UserRights',
  330. },
  331. {
  332. path: '/SystemManagement/BasicParameters',
  333. name: '基本参数',
  334. access: 'setting',
  335. component: './SystemManagement/BasicParameters',
  336. },
  337. ],
  338. },
  339. {
  340. path: '/',
  341. redirect: '/welcome',
  342. },
  343. {
  344. component: './404',
  345. },
  346. ];