routes.js 8.6KB

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