routes.js 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. },
  140. {
  141. path: '/OrderManage',
  142. name: '订单调度',
  143. access: 'order',
  144. icon: 'PhoneOutlined',
  145. component: '../layouts/BasicLayout',
  146. routes: [
  147. {
  148. path: '/OrderManage/index.jsx',
  149. name: '订单调度',
  150. access: 'orderjob',
  151. component: './OrderManage',
  152. },
  153. {
  154. path: '/OrderManage/dispatch.jsx',
  155. name: '调度详情',
  156. access: 'orderjob',
  157. component: './OrderManage/dispatch.jsx',
  158. hideInMenu: true,
  159. },
  160. {
  161. path: '/OrderManage/OrderList/index.jsx',
  162. name: '订单列表',
  163. access: 'orderList',
  164. component: './OrderManage/OrderList',
  165. },
  166. {
  167. path: '/OrderManage/JobWarning/index.jsx',
  168. name: '预警监管',
  169. access: 'orderwarning',
  170. component: './OrderManage/JobWarning',
  171. },
  172. {
  173. path: '/OrderManage/JobWarning/detail.jsx',
  174. name: '订单详情',
  175. access: 'orderwarning',
  176. component: './OrderManage/JobWarning/detail.jsx',
  177. hideInMenu: true,
  178. },
  179. ],
  180. },
  181. {
  182. path: '/JobStatistics',
  183. name: '作业统计',
  184. access: 'statis',
  185. icon: 'ScheduleOutlined',
  186. component: '../layouts/BasicLayout',
  187. routes: [
  188. {
  189. path: '/JobStatistics/Order',
  190. name: '订单统计',
  191. access: 'st-order',
  192. component: './JobStatistics/Order',
  193. },
  194. {
  195. path: '/JobStatistics/Job',
  196. name: '作业统计',
  197. access: 'st-work',
  198. component: './JobStatistics/Job',
  199. },
  200. ],
  201. },
  202. {
  203. path: '/Finance',
  204. name: '财务管理',
  205. access: 'finance',
  206. icon: 'DollarOutlined',
  207. component: '../layouts/BasicLayout',
  208. routes: [
  209. {
  210. path: '/Finance/AccountLog',
  211. name: '平台流水',
  212. access: 'fi-system',
  213. component: './Finance/AccountLog',
  214. },
  215. {
  216. path: '/Finance/Withdrawal',
  217. name: '提现管理',
  218. access: 'fi-withdraw',
  219. component: './Finance/Withdrawal',
  220. },
  221. {
  222. path: '/Finance/Withdrawal/audit.jsx',
  223. name: '提现审批',
  224. component: './Finance/Withdrawal/audit.jsx',
  225. hideInMenu: true,
  226. },
  227. ],
  228. },
  229. {
  230. path: '/PlatformMessageManagement',
  231. name: '消息管理',
  232. icon: 'MailOutlined',
  233. access: 'message',
  234. component: '../layouts/BasicLayout',
  235. routes: [
  236. {
  237. path: '/PlatformMessageManagement/MessageManageList',
  238. name: '平台消息',
  239. access: 'sys-message',
  240. icon: 'smile',
  241. component: './PlatformMessageManagement/MessageManageList',
  242. },
  243. {
  244. path: '/PlatformMessageManagement/MessageEdit',
  245. name: '消息查看',
  246. component: './PlatformMessageManagement/MessageEdit',
  247. hideInMenu: true,
  248. },
  249. ],
  250. },
  251. {
  252. path: '/Feedback',
  253. name: '意见反馈',
  254. icon: 'MessageOutlined',
  255. component: './Feedback',
  256. access: 'feedback',
  257. },
  258. {
  259. path: '/SystemManagement',
  260. name: '系统管理',
  261. icon: 'SettingOutlined',
  262. access: 'system',
  263. component: '../layouts/BasicLayout',
  264. routes: [
  265. {
  266. path: '/SystemManagement/Region',
  267. name: '区域设置',
  268. access: 'region',
  269. component: './SystemManagement/Region',
  270. },
  271. {
  272. path: '/SystemManagement/UserRights',
  273. name: '角色管理',
  274. access: 'role',
  275. component: './SystemManagement/UserRights',
  276. },
  277. {
  278. path: '/SystemManagement/BasicParameters',
  279. name: '基本参数',
  280. access: 'setting',
  281. component: './SystemManagement/BasicParameters',
  282. },
  283. ],
  284. },
  285. {
  286. path: '/',
  287. redirect: '/welcome',
  288. },
  289. {
  290. component: './404',
  291. },
  292. ];