routes.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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: '/MonitoringScreen',
  29. layout: false,
  30. name: '数据大屏',
  31. icon: 'DesktopOutlined',
  32. component: './MonitoringScreen',
  33. access: 'screen',
  34. },
  35. {
  36. path: '/MonitoringScreen2',
  37. layout: false,
  38. name: '数据大屏2',
  39. icon: 'DesktopOutlined',
  40. component: './MonitoringScreen2',
  41. access: 'screen',
  42. },
  43. {
  44. path: '/ContentManagementSystem',
  45. name: 'CMS管理',
  46. icon: 'MediumOutlined',
  47. component: '../layouts/BasicLayout',
  48. access: 'cms',
  49. routes: [
  50. {
  51. path: '/ContentManagementSystem/InformationClassification',
  52. name: '资讯分类',
  53. access: 'cmstype',
  54. component: './ContentManagementSystem/InformationClassification',
  55. },
  56. {
  57. path: '/ContentManagementSystem/InformationList',
  58. name: '资讯列表',
  59. access: 'news',
  60. component: './ContentManagementSystem/InformationList',
  61. },
  62. {
  63. path: '/ContentManagementSystem/InformationList/edit.jsx',
  64. name: '资讯列表编辑',
  65. component: './ContentManagementSystem/InformationList/edit.jsx',
  66. hideInMenu: true,
  67. },
  68. {
  69. path: '/ContentManagementSystem/Advertisement',
  70. name: '广告位管理',
  71. access: 'banner',
  72. component: './ContentManagementSystem/Advertisement',
  73. },
  74. {
  75. path: '/ContentManagementSystem/Advertisement/edit.jsx',
  76. name: '广告位编辑',
  77. component: './ContentManagementSystem/Advertisement/edit.jsx',
  78. hideInMenu: true,
  79. },
  80. ],
  81. },
  82. {
  83. path: '/customer',
  84. name: '农户管理',
  85. icon: 'IdcardOutlined',
  86. access: 'customer',
  87. component: '../layouts/BasicLayout',
  88. routes: [
  89. {
  90. path: '/customer/index.jsx',
  91. name: '农户列表',
  92. access: 'customerList',
  93. icon: 'smile',
  94. component: './customer',
  95. },
  96. ],
  97. },
  98. {
  99. path: '/Machinery',
  100. name: '农机管理',
  101. icon: 'CarOutlined',
  102. access: 'agricultural',
  103. component: '../layouts/BasicLayout',
  104. routes: [
  105. {
  106. path: '/Machinery/Org',
  107. name: '合作社列表',
  108. access: 'org',
  109. component: './Machinery/Org',
  110. },
  111. {
  112. path: '/Machinery/Person',
  113. name: '人员管理',
  114. access: 'user',
  115. component: './Machinery/Person',
  116. },
  117. {
  118. path: '/Machinery/MachineryType',
  119. name: '分类管理',
  120. access: 'machinetype',
  121. component: './Machinery/MachineryType',
  122. },
  123. {
  124. path: '/Machinery/Machinery',
  125. name: '农机列表',
  126. access: 'machinery',
  127. component: './Machinery/Machinery',
  128. },
  129. {
  130. path: '/Machinery/Machinery/Edit',
  131. name: '农机编辑',
  132. component: './Machinery/Machinery/Edit',
  133. hideInMenu: true,
  134. },
  135. {
  136. path: '/Machinery/GIS',
  137. name: '农机GIS',
  138. component: './Machinery/GIS',
  139. hideInMenu: true,
  140. },
  141. {
  142. path: '/Machinery/GIS/detail.jsx',
  143. name: 'GIS详情',
  144. component: './Machinery/GIS/detail.jsx',
  145. hideInMenu: true,
  146. },
  147. {
  148. path: '/Machinery/JobList',
  149. name: '设备作业列表',
  150. component: './Machinery/JobList',
  151. },
  152. {
  153. path: '/Machinery/OperationStatistics',
  154. name: '设备作业统计',
  155. component: './Machinery/OperationStatistics',
  156. },
  157. {
  158. path: '/Machinery/OperationStatistics/Detail',
  159. name: '设备作业详情',
  160. component: './Machinery/OperationStatistics/Detail',
  161. hideInMenu: true,
  162. },
  163. {
  164. path: '/Machinery/Sensing',
  165. name: '传感设备列表',
  166. component: './Machinery/Sensing',
  167. },
  168. ],
  169. },
  170. {
  171. path: '/OrderManage',
  172. name: '订单调度',
  173. access: 'order',
  174. icon: 'PhoneOutlined',
  175. component: '../layouts/BasicLayout',
  176. routes: [
  177. {
  178. path: '/OrderManage/index.jsx',
  179. name: '订单调度',
  180. access: 'orderjob',
  181. component: './OrderManage',
  182. },
  183. {
  184. path: '/OrderManage/dispatch.jsx',
  185. name: '调度详情',
  186. access: 'orderjob',
  187. component: './OrderManage/dispatch.jsx',
  188. hideInMenu: true,
  189. },
  190. {
  191. path: '/OrderManage/OrderList/index.jsx',
  192. name: '订单列表',
  193. access: 'orderList',
  194. component: './OrderManage/OrderList',
  195. },
  196. {
  197. path: '/OrderManage/JobWarning/index.jsx',
  198. name: '预警监管',
  199. access: 'orderwarning',
  200. component: './OrderManage/JobWarning',
  201. },
  202. {
  203. path: '/OrderManage/JobWarning/detail.jsx',
  204. name: '订单详情',
  205. access: 'orderwarning',
  206. component: './OrderManage/JobWarning/detail.jsx',
  207. hideInMenu: true,
  208. },
  209. ],
  210. },
  211. {
  212. path: '/JobStatistics',
  213. name: '作业统计',
  214. access: 'statis',
  215. icon: 'ScheduleOutlined',
  216. component: '../layouts/BasicLayout',
  217. routes: [
  218. {
  219. path: '/JobStatistics/Order',
  220. name: '订单统计',
  221. access: 'st-order',
  222. component: './JobStatistics/Order',
  223. },
  224. {
  225. path: '/JobStatistics/Job',
  226. name: '作业统计',
  227. access: 'st-work',
  228. component: './JobStatistics/Job',
  229. },
  230. ],
  231. },
  232. {
  233. path: '/Finance',
  234. name: '财务管理',
  235. access: 'finance',
  236. icon: 'DollarOutlined',
  237. component: '../layouts/BasicLayout',
  238. routes: [
  239. {
  240. path: '/Finance/AccountLog',
  241. name: '平台流水',
  242. access: 'fi-system',
  243. component: './Finance/AccountLog',
  244. },
  245. {
  246. path: '/Finance/Withdrawal',
  247. name: '提现管理',
  248. access: 'fi-withdraw',
  249. component: './Finance/Withdrawal',
  250. },
  251. {
  252. path: '/Finance/Withdrawal/audit.jsx',
  253. name: '提现审批',
  254. component: './Finance/Withdrawal/audit.jsx',
  255. hideInMenu: true,
  256. },
  257. ],
  258. },
  259. {
  260. path: '/PlatformMessageManagement',
  261. name: '消息管理',
  262. icon: 'MailOutlined',
  263. access: 'message',
  264. component: '../layouts/BasicLayout',
  265. routes: [
  266. {
  267. path: '/PlatformMessageManagement/MessageManageList',
  268. name: '平台消息',
  269. access: 'sys-message',
  270. icon: 'smile',
  271. component: './PlatformMessageManagement/MessageManageList',
  272. },
  273. {
  274. path: '/PlatformMessageManagement/MessageEdit',
  275. name: '消息查看',
  276. component: './PlatformMessageManagement/MessageEdit',
  277. hideInMenu: true,
  278. },
  279. ],
  280. },
  281. {
  282. path: '/Feedback',
  283. name: '意见反馈',
  284. icon: 'MessageOutlined',
  285. component: './Feedback',
  286. access: 'feedback',
  287. },
  288. {
  289. path: '/SystemManagement',
  290. name: '系统管理',
  291. icon: 'SettingOutlined',
  292. access: 'system',
  293. component: '../layouts/BasicLayout',
  294. routes: [
  295. {
  296. path: '/SystemManagement/Region',
  297. name: '区域设置',
  298. access: 'region',
  299. component: './SystemManagement/Region',
  300. },
  301. {
  302. path: '/SystemManagement/UserRights',
  303. name: '角色管理',
  304. access: 'role',
  305. component: './SystemManagement/UserRights',
  306. },
  307. {
  308. path: '/SystemManagement/BasicParameters',
  309. name: '基本参数',
  310. access: 'setting',
  311. component: './SystemManagement/BasicParameters',
  312. },
  313. {
  314. path: '/SystemManagement/iot',
  315. name: 'IOT平台',
  316. access: 'setting',
  317. component: '../layouts/BasicLayout',
  318. routes: [
  319. {
  320. path: '/SystemManagement/iot/Subsoiler',
  321. name: '深松机',
  322. access: 'setting',
  323. component: './SystemManagement/Subsoiler',
  324. },
  325. {
  326. path: '/SystemManagement/iot/Classification',
  327. name: '外设分类',
  328. access: 'setting',
  329. component: './SystemManagement/Classification',
  330. },
  331. ],
  332. },
  333. ],
  334. },
  335. {
  336. path: '/',
  337. redirect: '/welcome',
  338. },
  339. {
  340. component: './404',
  341. },
  342. ];