routes.js 8.0KB

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