routes.js 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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: '/admin',
  29. name: 'admin',
  30. icon: 'crown',
  31. access: 'canAdmin',
  32. component: './Admin',
  33. routes: [
  34. {
  35. path: '/admin/sub-page',
  36. name: 'sub-page',
  37. icon: 'smile',
  38. component: './Welcome',
  39. },
  40. {
  41. component: './404',
  42. },
  43. ],
  44. },
  45. {
  46. path: '/MonitoringScreen',
  47. name: '数据大屏',
  48. icon: 'DesktopOutlined',
  49. component: './MonitoringScreen',
  50. access: 'screen',
  51. },
  52. {
  53. path: '/ContentManagementSystem',
  54. name: 'CMS管理',
  55. icon: 'MediumOutlined',
  56. component: '../layouts/BasicLayout',
  57. access: 'cms',
  58. routes: [
  59. {
  60. path: '/ContentManagementSystem/InformationClassification',
  61. name: '资讯分类',
  62. access: 'cmstype',
  63. component: './ContentManagementSystem/InformationClassification',
  64. },
  65. {
  66. path: '/ContentManagementSystem/InformationClassification/InformationClassificationEdit',
  67. name: '资讯分类编辑',
  68. component:
  69. './ContentManagementSystem/InformationClassification/InformationClassificationEdit',
  70. hideInMenu: true,
  71. },
  72. {
  73. path: '/ContentManagementSystem/InformationList',
  74. name: '资讯列表',
  75. access: 'news',
  76. component: './ContentManagementSystem/InformationList',
  77. },
  78. {
  79. path: '/ContentManagementSystem/InformationList/InformationListEdit',
  80. name: '资讯列表编辑',
  81. component: './ContentManagementSystem/InformationList/InformationListEdit',
  82. hideInMenu: true,
  83. },
  84. {
  85. path: '/ContentManagementSystem/Advertisement',
  86. name: '广告位管理',
  87. access: 'banner',
  88. component: './ContentManagementSystem/Advertisement',
  89. },
  90. {
  91. path: '/ContentManagementSystem/Advertisement/edit.jsx',
  92. name: '广告位编辑',
  93. component: './ContentManagementSystem/Advertisement/edit.jsx',
  94. hideInMenu: true,
  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/GPS',
  107. name: '设备管理',
  108. access: 'device',
  109. component: './Machinery/GPS',
  110. },
  111. {
  112. path: '/Machinery/GPS/edit.jsx',
  113. name: '设备编辑',
  114. component: './Machinery/GPS/edit.jsx',
  115. hideInMenu: true,
  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.jsx',
  131. name: '农机编辑',
  132. component: './Machinery/Machinery/edit.jsx',
  133. hideInMenu: true,
  134. },
  135. {
  136. path: '/Machinery/GIS',
  137. name: '农机GIS',
  138. access: 'gis',
  139. component: './Machinery/GIS',
  140. },
  141. ],
  142. },
  143. {
  144. path: '/OrderManage',
  145. name: '订单调度',
  146. access: 'order',
  147. icon: 'PhoneOutlined',
  148. component: '../layouts/BasicLayout',
  149. routes: [
  150. {
  151. path: '/OrderManage/index.jsx',
  152. name: '订单调度',
  153. access: 'orderjob',
  154. component: './OrderManage',
  155. },
  156. {
  157. path: '/OrderManage/JobWarning/index.jsx',
  158. name: '预警监管',
  159. access: 'orderwarning',
  160. component: './OrderManage/JobWarning',
  161. },
  162. ],
  163. },
  164. {
  165. path: '/JobStatistics',
  166. name: '作业统计',
  167. access: 'statis',
  168. icon: 'ScheduleOutlined',
  169. component: '../layouts/BasicLayout',
  170. routes: [
  171. {
  172. path: '/JobStatistics/Order',
  173. name: '订单统计',
  174. access: 'st-order',
  175. component: './JobStatistics/Order',
  176. },
  177. {
  178. path: '/JobStatistics/Job',
  179. name: '作业统计',
  180. access: 'st-work',
  181. component: './JobStatistics/Job',
  182. },
  183. {
  184. path: '/JobStatistics/RevenueExpenditure',
  185. name: '收支统计',
  186. access: 'st-finance',
  187. component: './JobStatistics/RevenueExpenditure',
  188. },
  189. ],
  190. },
  191. {
  192. path: '/Finance',
  193. name: '财务管理',
  194. access: 'finance',
  195. icon: 'DollarOutlined',
  196. component: '../layouts/BasicLayout',
  197. routes: [
  198. {
  199. path: '/Finance/AccountLog',
  200. name: '平台流水',
  201. access: 'fi-system',
  202. component: './Finance/AccountLog',
  203. },
  204. {
  205. path: '/Finance/Withdrawal',
  206. name: '提现管理',
  207. access: 'fi-withdraw',
  208. component: './Finance/Withdrawal',
  209. },
  210. ],
  211. },
  212. {
  213. path: '/PlatformMessageManagement',
  214. name: '消息管理',
  215. icon: 'MailOutlined',
  216. access: 'message',
  217. component: '../layouts/BasicLayout',
  218. routes: [
  219. {
  220. path: '/PlatformMessageManagement/MessageManageList',
  221. name: '平台消息',
  222. access: 'sys-message',
  223. icon: 'smile',
  224. component: './PlatformMessageManagement/MessageManageList',
  225. },
  226. {
  227. path: '/PlatformMessageManagement/MessageEdit',
  228. name: '消息查看',
  229. component: './PlatformMessageManagement/MessageEdit',
  230. hideInMenu: true,
  231. },
  232. ],
  233. },
  234. {
  235. path: '/SystemManagement',
  236. name: '系统管理',
  237. icon: 'SettingOutlined',
  238. access: 'system',
  239. component: '../layouts/BasicLayout',
  240. routes: [
  241. {
  242. path: '/SystemManagement/Region',
  243. name: '区域设置',
  244. access: 'region',
  245. component: './SystemManagement/Region',
  246. // hideInMenu: true
  247. },
  248. {
  249. path: '/SystemManagement/Cooperative',
  250. name: '机构列表',
  251. access: 'org',
  252. component: './SystemManagement/Cooperative',
  253. },
  254. {
  255. path: '/SystemManagement/Cooperative/edit.jsx',
  256. name: '机构编辑',
  257. component: './SystemManagement/Cooperative/edit.jsx',
  258. hideInMenu: true,
  259. },
  260. {
  261. path: '/SystemManagement/UserRights',
  262. name: '角色管理',
  263. access: 'role',
  264. component: './SystemManagement/UserRights',
  265. },
  266. {
  267. path: '/SystemManagement/Administrator',
  268. name: '人员管理',
  269. access: 'user',
  270. component: './SystemManagement/Administrator',
  271. },
  272. {
  273. path: '/SystemManagement/Administrator/AdminEdit',
  274. name: '人员编辑',
  275. component: './SystemManagement/Administrator/AdminEdit',
  276. hideInMenu: true,
  277. },
  278. {
  279. path: '/SystemManagement/BasicParameters',
  280. name: '基本参数',
  281. access: 'setting',
  282. component: './SystemManagement/BasicParameters',
  283. },
  284. ],
  285. },
  286. {
  287. path: '/',
  288. redirect: '/welcome',
  289. },
  290. {
  291. component: './404',
  292. },
  293. ];