routers.ts 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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: '/disaster-prevention/disaster-warning',
  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/PageWarningInfoItem',
  69. id: 1036,
  70. meta: {
  71. activeMenu: null,
  72. alwaysShow: false,
  73. frameSrc: '',
  74. hidden: true,
  75. icon: '',
  76. isFrame: 0,
  77. isRoot: false,
  78. noCache: false,
  79. query: '',
  80. title: '预警信息详情',
  81. },
  82. name: '/disaster-prevention/disaster-warning/warning-info-item',
  83. parentId: 1027,
  84. path: 'warning-info-item',
  85. redirect: '',
  86. },
  87. {
  88. component: '/disaster/disaster-warning/PageDefenseNotice',
  89. id: 1037,
  90. meta: {
  91. activeMenu: null,
  92. alwaysShow: false,
  93. frameSrc: '',
  94. hidden: false,
  95. icon: '',
  96. isFrame: 0,
  97. isRoot: false,
  98. noCache: false,
  99. query: '',
  100. title: '防御通知',
  101. },
  102. name: '/disaster-prevention/disaster-warning/defense-notice',
  103. parentId: 1027,
  104. path: 'defense-notice',
  105. redirect: '',
  106. },
  107. {
  108. component: '/disaster/disaster-warning/PageDefenseNoticeItem',
  109. id: 1038,
  110. meta: {
  111. activeMenu: null,
  112. alwaysShow: false,
  113. frameSrc: '',
  114. hidden: true,
  115. icon: '',
  116. isFrame: 0,
  117. isRoot: false,
  118. noCache: false,
  119. query: '',
  120. title: '防御通知详情',
  121. },
  122. name: '/disaster-prevention/disaster-warning/defense-notice-item',
  123. parentId: 1027,
  124. path: 'defense-notice-item',
  125. redirect: '',
  126. },
  127. ],
  128. component: '',
  129. id: 1027,
  130. meta: {
  131. activeMenu: null,
  132. alwaysShow: false,
  133. frameSrc: '',
  134. hidden: false,
  135. icon: 'DisasterWarningIcon',
  136. isFrame: 0,
  137. isRoot: false,
  138. noCache: false,
  139. query: '',
  140. title: '灾害预警',
  141. },
  142. name: '/disaster-prevention/disaster-warning',
  143. parentId: 1022,
  144. path: 'disaster-warning',
  145. redirect: '',
  146. },
  147. {
  148. children: [
  149. {
  150. component: '/disaster/disaster-precaution/PageTaskManagement',
  151. id: 1029,
  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-management',
  165. parentId: 1028,
  166. path: 'task-management',
  167. redirect: '',
  168. },
  169. {
  170. component: '/disaster/disaster-precaution/PageTaskItem',
  171. id: 1033,
  172. meta: {
  173. activeMenu: null,
  174. alwaysShow: false,
  175. frameSrc: '',
  176. hidden: true,
  177. icon: '',
  178. isFrame: 0,
  179. isRoot: false,
  180. noCache: false,
  181. query: '',
  182. title: '任务列表详情',
  183. },
  184. name: '/disaster-prevention/disaster-precaution/task-item',
  185. parentId: 1028,
  186. path: 'task-item',
  187. redirect: '',
  188. },
  189. {
  190. component: '/disaster/disaster-precaution/PageTaskExecution',
  191. id: 1030,
  192. meta: {
  193. activeMenu: null,
  194. alwaysShow: false,
  195. frameSrc: '',
  196. hidden: false,
  197. icon: '',
  198. isFrame: 0,
  199. isRoot: false,
  200. noCache: false,
  201. query: '',
  202. title: '任务执行',
  203. },
  204. name: '/disaster-prevention/disaster-precaution/task-execution',
  205. parentId: 1028,
  206. path: 'task-execution',
  207. redirect: '',
  208. },
  209. {
  210. component: '/disaster/disaster-precaution/PageTaskTemplate',
  211. id: 1031,
  212. meta: {
  213. activeMenu: '/disaster-prevention/disaster-precaution/task-execution',
  214. alwaysShow: false,
  215. frameSrc: '',
  216. hidden: false,
  217. icon: '',
  218. isFrame: 0,
  219. isRoot: false,
  220. noCache: false,
  221. query: '',
  222. title: '任务模板',
  223. },
  224. name: '/disaster-prevention/disaster-precaution/task-template',
  225. parentId: 1028,
  226. path: 'task-template',
  227. redirect: '',
  228. },
  229. {
  230. component: '/todo/todo',
  231. id: 1032,
  232. meta: {
  233. activeMenu: '/disaster-prevention/disaster-precaution/task-template',
  234. alwaysShow: false,
  235. frameSrc: '',
  236. hidden: true,
  237. icon: '',
  238. isFrame: 0,
  239. isRoot: false,
  240. noCache: false,
  241. query: '',
  242. title: '任务模板详情',
  243. },
  244. name: '/disaster-prevention/disaster-precaution/template-detail',
  245. parentId: 1028,
  246. path: 'template-detail/:id',
  247. redirect: '',
  248. },
  249. ],
  250. component: '',
  251. id: 1028,
  252. meta: {
  253. activeMenu: null,
  254. alwaysShow: false,
  255. frameSrc: '',
  256. hidden: false,
  257. icon: 'DisasterPrecaution',
  258. isFrame: 0,
  259. isRoot: false,
  260. noCache: false,
  261. query: '',
  262. title: '预防检查',
  263. // OverviewIcon: renderSvg('overview'),
  264. // DisasterWarningIcon: renderSvg('disaster-warning'),
  265. // DisasterControlIcon: renderSvg('disaster-control'),
  266. },
  267. name: '/disaster-prevention/disaster-precaution',
  268. parentId: 1022,
  269. path: 'disaster-precaution',
  270. redirect: '',
  271. },
  272. {
  273. component: '/disaster/disaster-control/PageDisasterControl',
  274. id: 1032,
  275. meta: {
  276. activeMenu: null,
  277. alwaysShow: false,
  278. frameSrc: '',
  279. hidden: false,
  280. icon: 'DisasterControlIcon',
  281. isFrame: 0,
  282. isRoot: false,
  283. noCache: false,
  284. query: '',
  285. title: '灾害处置',
  286. },
  287. name: '/disaster-prevention/disaster-control',
  288. parentId: 1022,
  289. path: 'disaster-control',
  290. redirect: '',
  291. },
  292. ],
  293. component: 'MENU_LAYOUT',
  294. id: 1022,
  295. meta: {
  296. activeMenu: null,
  297. alwaysShow: false,
  298. frameSrc: '',
  299. hidden: false,
  300. icon: 'CameraOutlined',
  301. isFrame: 0,
  302. isRoot: false,
  303. noCache: false,
  304. query: '',
  305. title: '灾害防范',
  306. },
  307. name: 'DisasterPrevention',
  308. parentId: -1,
  309. path: '/disaster-prevention',
  310. redirect: '',
  311. },
  312. ];
  313. // export default [
  314. // {
  315. // url: '/safety_api/api/admin/menu/getRouters',
  316. // timeout: 1000,
  317. // method: 'get',
  318. // response: () => {
  319. // return resultSuccess(list);
  320. // },
  321. // },
  322. // ];