routes.js 7.8KB

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