routes.js 6.8KB

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