routes.js 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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: '/PlatformMessageManagement',
  47. name: '消息管理',
  48. icon: 'MailOutlined',
  49. component: '../layouts/BasicLayout',
  50. routes: [
  51. {
  52. path: '/PlatformMessageManagement/MessageManageList',
  53. name: '平台消息管理',
  54. icon: 'smile',
  55. component: './PlatformMessageManagement/MessageManageList',
  56. },
  57. {
  58. path: '/PlatformMessageManagement/MessageEdit',
  59. name: '消息查看',
  60. component: './PlatformMessageManagement/MessageEdit',
  61. hideInMenu: true,
  62. },
  63. ],
  64. },
  65. {
  66. path: '/ContentManagementSystem',
  67. name: 'CMS管理',
  68. icon: 'MediumOutlined',
  69. component: '../layouts/BasicLayout',
  70. routes: [
  71. {
  72. path: '/ContentManagementSystem/InformationClassification',
  73. name: '资讯分类',
  74. component: './ContentManagementSystem/InformationClassification',
  75. },
  76. {
  77. path: '/ContentManagementSystem/InformationClassification/InformationClassificationEdit',
  78. name: '资讯分类编辑',
  79. component:
  80. './ContentManagementSystem/InformationClassification/InformationClassificationEdit',
  81. hideInMenu: true,
  82. },
  83. {
  84. path: '/ContentManagementSystem/InformationList',
  85. name: '资讯列表',
  86. component: './ContentManagementSystem/InformationList',
  87. },
  88. {
  89. path: '/ContentManagementSystem/InformationList/InformationListEdit',
  90. name: '资讯列表编辑',
  91. component: './ContentManagementSystem/InformationList/InformationListEdit',
  92. hideInMenu: true,
  93. },
  94. {
  95. path: '/ContentManagementSystem/BannerClassification',
  96. name: 'Banner资讯',
  97. component: './ContentManagementSystem/BannerClassification',
  98. },
  99. {
  100. path: '/ContentManagementSystem/BannerClassification/BannerClassificationEdit',
  101. name: 'Banner资讯编辑',
  102. component: './ContentManagementSystem/BannerClassification/BannerClassificationEdit',
  103. hideInMenu: true,
  104. },
  105. ],
  106. },
  107. {
  108. path: '/Machinery',
  109. name: '农机管理',
  110. icon: 'CarOutlined',
  111. component: '../layouts/BasicLayout',
  112. routes: [
  113. {
  114. path: '/Machinery/Cooperative',
  115. name: '合作社列表',
  116. component: './Machinery/Cooperative',
  117. },
  118. {
  119. path: '/Machinery/Cooperative/edit.jsx',
  120. name: '合作社编辑',
  121. component: './Machinery/Cooperative/edit.jsx',
  122. hideInMenu: true,
  123. },
  124. {
  125. path: '/Machinery/Employees',
  126. name: '员工列表',
  127. component: './Machinery/Employees',
  128. },
  129. {
  130. path: '/Machinery/Employees/edit.jsx',
  131. name: '员工编辑',
  132. component: './Machinery/Employees/edit.jsx',
  133. hideInMenu: true,
  134. },
  135. {
  136. path: '/Machinery/MachineryType',
  137. name: '农机分类列表',
  138. component: './Machinery/MachineryType',
  139. },
  140. {
  141. path: '/Machinery/Machinery',
  142. name: '农机列表',
  143. component: './Machinery/Machinery',
  144. },
  145. {
  146. path: '/Machinery/Machinery/edit.jsx',
  147. name: '农机编辑',
  148. component: './Machinery/Machinery/edit.jsx',
  149. hideInMenu: true,
  150. },
  151. ],
  152. },
  153. {
  154. path: '/MonitoringScreen',
  155. name: '农机监控大屏',
  156. icon: 'DesktopOutlined',
  157. component: '../layouts/BasicLayout',
  158. routes: [
  159. {
  160. path: '/MonitoringScreen/index.jsx',
  161. name: '农机监控大屏',
  162. component: './MonitoringScreen',
  163. },
  164. {
  165. path: '/MonitoringScreen/detail.jsx',
  166. name: '农机轨迹',
  167. component: './MonitoringScreen/detail.jsx',
  168. hideInMenu: true,
  169. },
  170. ],
  171. },
  172. {
  173. path: '/MachineryGIS',
  174. name: '农机GIS',
  175. icon: 'InsertRowLeftOutlined',
  176. component: '../layouts/BasicLayout',
  177. routes: [
  178. {
  179. path: '/MachineryGIS/index.jsx',
  180. name: '农机GIS',
  181. component: './MachineryGIS',
  182. },
  183. ],
  184. },
  185. {
  186. path: '/OrderManage',
  187. name: '订单调度',
  188. icon: 'PhoneOutlined',
  189. component: '../layouts/BasicLayout',
  190. routes: [
  191. {
  192. path: '/OrderManage/index.jsx',
  193. name: '订单调度',
  194. component: './OrderManage',
  195. },
  196. ],
  197. },
  198. {
  199. path: '/JobWarning',
  200. name: '作业预警',
  201. icon: 'AlertOutlined',
  202. component: '../layouts/BasicLayout',
  203. routes: [
  204. {
  205. path: '/JobWarning/index.jsx',
  206. name: '作业预警',
  207. component: './JobWarning',
  208. },
  209. ],
  210. },
  211. {
  212. path: '/JobStatistics',
  213. name: '作业统计',
  214. icon: 'ScheduleOutlined',
  215. component: '../layouts/BasicLayout',
  216. routes: [
  217. {
  218. path: '/JobStatistics/Machinery',
  219. name: '农机统计',
  220. component: './JobStatistics/Machinery',
  221. },
  222. {
  223. path: '/JobStatistics/Order',
  224. name: '订单统计',
  225. component: './JobStatistics/Order',
  226. },
  227. {
  228. path: '/JobStatistics/RevenueExpenditure',
  229. name: '收支统计',
  230. component: './JobStatistics/RevenueExpenditure',
  231. },
  232. ],
  233. },
  234. {
  235. path: '/Finance',
  236. name: '财务管理',
  237. icon: 'DollarOutlined',
  238. component: '../layouts/BasicLayout',
  239. routes: [
  240. {
  241. path: '/Finance/AccountLog',
  242. name: '平台流水',
  243. component: './Finance/AccountLog',
  244. },
  245. {
  246. path: '/Finance/Withdrawal',
  247. name: '提现管理',
  248. component: './Finance/Withdrawal',
  249. },
  250. ],
  251. },
  252. {
  253. path: '/GPSDevice',
  254. name: 'GPS设备管理',
  255. icon: 'CompassOutlined',
  256. component: '../layouts/BasicLayout',
  257. routes: [
  258. {
  259. path: '/GPSDevice/GPS',
  260. name: 'GPS管理',
  261. component: './GPSDevice/GPS',
  262. },
  263. {
  264. path: '/GPSDevice/GPS/GPSEdit',
  265. name: '新增设备',
  266. component: './GPSDevice/GPS/GPSEdit',
  267. hideInMenu: true,
  268. },
  269. ],
  270. },
  271. {
  272. path: '/SystemManagement',
  273. name: '系统管理',
  274. icon: 'SettingOutlined',
  275. component: '../layouts/BasicLayout',
  276. routes: [
  277. {
  278. path: '/SystemManagement/Administrator',
  279. name: '管理员',
  280. icon: 'smile',
  281. component: './SystemManagement/Administrator',
  282. },
  283. {
  284. path: '/SystemManagement/Administrator/AdminEdit',
  285. name: '管理员编辑页',
  286. icon: 'smile',
  287. component: './SystemManagement/Administrator/AdminEdit',
  288. hideInMenu: true,
  289. },
  290. {
  291. path: '/SystemManagement/UserRights',
  292. name: '角色权限',
  293. component: './SystemManagement/UserRights',
  294. },
  295. {
  296. path: '/SystemManagement/BasicParameters',
  297. name: '基本参数',
  298. component: './SystemManagement/BasicParameters',
  299. },
  300. {
  301. path: '/SystemManagement/MapExtent',
  302. name: '区域设置',
  303. component: './SystemManagement/MapExtent',
  304. // hideInMenu: true
  305. },
  306. {
  307. path: '/SystemManagement/Agreement',
  308. name: '协议对接',
  309. component: './SystemManagement/Agreement',
  310. // hideInMenu: true
  311. },
  312. ],
  313. },
  314. {
  315. path: '/',
  316. redirect: '/welcome',
  317. },
  318. {
  319. component: './404',
  320. },
  321. ];