routes.js 7.5KB

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