routes.js 8.7KB

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