routes.js 8.1KB

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