routers.ts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. children: [
  5. {
  6. component: '/disaster/overview/PageOverview',
  7. id: 1025,
  8. meta: {
  9. activeMenu: null,
  10. alwaysShow: false,
  11. frameSrc: '',
  12. hidden: false,
  13. icon: 'OverviewIcon',
  14. isFrame: 0,
  15. isRoot: false,
  16. noCache: false,
  17. query: '',
  18. title: '总览',
  19. },
  20. name: '/disaster-prevention/overview',
  21. parentId: 1022,
  22. path: 'overview',
  23. redirect: '',
  24. },
  25. {
  26. component: '/disaster/monitor/PageMonitor',
  27. id: 1026,
  28. meta: {
  29. activeMenu: null,
  30. alwaysShow: false,
  31. frameSrc: '',
  32. hidden: false,
  33. icon: 'RiskPointMonitoringIcon',
  34. isFrame: 0,
  35. isRoot: false,
  36. noCache: false,
  37. query: '',
  38. title: '重点区域监测',
  39. },
  40. name: '/disaster-prevention/risk-point-monitoring',
  41. parentId: 1022,
  42. path: 'risk-point-monitoring',
  43. redirect: '',
  44. },
  45. {
  46. children: [
  47. {
  48. component: '/disaster/disaster-warning/PageWarningInfo',
  49. id: 1035,
  50. meta: {
  51. activeMenu: null,
  52. alwaysShow: false,
  53. frameSrc: '',
  54. hidden: false,
  55. icon: '',
  56. isFrame: 0,
  57. isRoot: false,
  58. noCache: false,
  59. query: '',
  60. title: '预警信息',
  61. },
  62. name: '/disaster-prevention/disaster-warning/warning-info',
  63. parentId: 1027,
  64. path: 'warning-info',
  65. redirect: '',
  66. },
  67. {
  68. component: '/disaster/disaster-warning/PageDefenseNotice',
  69. id: 1037,
  70. meta: {
  71. activeMenu: null,
  72. alwaysShow: false,
  73. frameSrc: '',
  74. hidden: false,
  75. icon: '',
  76. isFrame: 0,
  77. isRoot: false,
  78. noCache: false,
  79. query: '',
  80. title: '防御通知',
  81. },
  82. name: '/disaster-prevention/disaster-warning/defense-notice',
  83. parentId: 1027,
  84. path: 'defense-notice',
  85. redirect: '',
  86. },
  87. ],
  88. component: '',
  89. id: 1027,
  90. meta: {
  91. activeMenu: null,
  92. alwaysShow: false,
  93. frameSrc: '',
  94. hidden: false,
  95. icon: 'DisasterWarningIcon',
  96. isFrame: 0,
  97. isRoot: false,
  98. noCache: false,
  99. query: '',
  100. title: '灾害预警',
  101. },
  102. name: '/disaster-prevention/disaster-warning',
  103. parentId: 1022,
  104. path: 'disaster-warning',
  105. redirect: '',
  106. },
  107. {
  108. children: [
  109. {
  110. component: '/disaster/disaster-precaution/PageTaskManagement',
  111. id: 1029,
  112. meta: {
  113. activeMenu: null,
  114. alwaysShow: false,
  115. frameSrc: '',
  116. hidden: false,
  117. icon: '',
  118. isFrame: 0,
  119. isRoot: false,
  120. noCache: false,
  121. query: '',
  122. title: '任务管理',
  123. },
  124. name: '/disaster-prevention/disaster-precaution/task-management',
  125. parentId: 1028,
  126. path: 'task-management',
  127. redirect: '',
  128. },
  129. {
  130. component: '/disaster/disaster-precaution/PageTaskExecution',
  131. id: 1030,
  132. meta: {
  133. activeMenu: null,
  134. alwaysShow: false,
  135. frameSrc: '',
  136. hidden: false,
  137. icon: '',
  138. isFrame: 0,
  139. isRoot: false,
  140. noCache: false,
  141. query: '',
  142. title: '任务执行',
  143. },
  144. name: '/disaster-prevention/disaster-precaution/task-execution',
  145. parentId: 1028,
  146. path: 'task-execution',
  147. redirect: '',
  148. },
  149. {
  150. component: '/disaster/disaster-precaution/PageTaskTemplate',
  151. id: 1031,
  152. meta: {
  153. activeMenu: null,
  154. alwaysShow: false,
  155. frameSrc: '',
  156. hidden: false,
  157. icon: '',
  158. isFrame: 0,
  159. isRoot: false,
  160. noCache: false,
  161. query: '',
  162. title: '任务模板',
  163. },
  164. name: '/disaster-prevention/disaster-precaution/task-template',
  165. parentId: 1028,
  166. path: 'task-template',
  167. redirect: '',
  168. },
  169. {
  170. component: '/disaster/disaster-precaution/PageTaskTemplateDetail',
  171. id: 1032,
  172. meta: {
  173. activeMenu: null,
  174. alwaysShow: false,
  175. frameSrc: '',
  176. hidden: false,
  177. icon: '',
  178. isFrame: 0,
  179. isRoot: false,
  180. noCache: false,
  181. query: '',
  182. title: '任务模板详情',
  183. isHidden: true,
  184. },
  185. name: '/disaster-prevention/disaster-precaution/template-detail',
  186. parentId: 1028,
  187. path: 'template-detail/:id',
  188. redirect: '',
  189. },
  190. ],
  191. component: '',
  192. id: 1028,
  193. meta: {
  194. activeMenu: null,
  195. alwaysShow: false,
  196. frameSrc: '',
  197. hidden: false,
  198. icon: 'DisasterPrecaution',
  199. isFrame: 0,
  200. isRoot: false,
  201. noCache: false,
  202. query: '',
  203. title: '预防检查',
  204. // OverviewIcon: renderSvg('overview'),
  205. // DisasterWarningIcon: renderSvg('disaster-warning'),
  206. // DisasterControlIcon: renderSvg('disaster-control'),
  207. },
  208. name: '/disaster-prevention/disaster-precaution',
  209. parentId: 1022,
  210. path: 'disaster-precaution',
  211. redirect: '',
  212. },
  213. {
  214. component: '/disaster/disaster-control/PageDisasterControl',
  215. id: 1032,
  216. meta: {
  217. activeMenu: null,
  218. alwaysShow: false,
  219. frameSrc: '',
  220. hidden: false,
  221. icon: 'DisasterControlIcon',
  222. isFrame: 0,
  223. isRoot: false,
  224. noCache: false,
  225. query: '',
  226. title: '灾害处置',
  227. },
  228. name: '/disaster-prevention/disaster-control',
  229. parentId: 1022,
  230. path: 'disaster-control',
  231. redirect: '',
  232. },
  233. ],
  234. component: 'MENU_LAYOUT',
  235. id: 1022,
  236. meta: {
  237. activeMenu: null,
  238. alwaysShow: false,
  239. frameSrc: '',
  240. hidden: false,
  241. icon: 'CameraOutlined',
  242. isFrame: 0,
  243. isRoot: false,
  244. noCache: false,
  245. query: '',
  246. title: '灾害防范',
  247. },
  248. name: 'DisasterPrevention',
  249. parentId: -1,
  250. path: '/disaster-prevention',
  251. redirect: '',
  252. },
  253. ];
  254. export default [
  255. {
  256. url: '/eye_api_bak/api/admin/menu/getRouters',
  257. timeout: 1000,
  258. method: 'get',
  259. response: () => {
  260. return resultSuccess(list);
  261. },
  262. },
  263. ];