routes.js 7.7KB

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