routers.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. children: [
  5. {
  6. component: '/todo/todo',
  7. id: 1025,
  8. meta: {
  9. activeMenu: null,
  10. alwaysShow: false,
  11. frameSrc: '',
  12. hidden: false,
  13. icon: '',
  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: '/todo/todo',
  27. id: 1026,
  28. meta: {
  29. activeMenu: null,
  30. alwaysShow: false,
  31. frameSrc: '',
  32. hidden: false,
  33. icon: '',
  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. component: '/todo/todo',
  47. id: 1027,
  48. meta: {
  49. activeMenu: null,
  50. alwaysShow: false,
  51. frameSrc: '',
  52. hidden: false,
  53. icon: '',
  54. isFrame: 0,
  55. isRoot: false,
  56. noCache: false,
  57. query: '',
  58. title: '灾害预警',
  59. },
  60. name: '/disaster-prevention/disaster-warning',
  61. parentId: 1022,
  62. path: 'disaster-warning',
  63. redirect: '',
  64. },
  65. {
  66. children: [
  67. {
  68. component: '/todo/todo',
  69. id: 1029,
  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-precaution/task-management',
  83. parentId: 1028,
  84. path: 'task-management',
  85. redirect: '',
  86. },
  87. {
  88. component: '/todo/todo',
  89. id: 1030,
  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-precaution/task-execution',
  103. parentId: 1028,
  104. path: 'task-execution',
  105. redirect: '',
  106. },
  107. {
  108. component: '/todo/todo',
  109. id: 1031,
  110. meta: {
  111. activeMenu: null,
  112. alwaysShow: false,
  113. frameSrc: '',
  114. hidden: false,
  115. icon: '',
  116. isFrame: 0,
  117. isRoot: false,
  118. noCache: false,
  119. query: '',
  120. title: '任务模板',
  121. },
  122. name: '/disaster-prevention/disaster-precaution/task-template',
  123. parentId: 1028,
  124. path: 'task-template',
  125. redirect: '',
  126. },
  127. ],
  128. component: '/todo/todo',
  129. id: 1028,
  130. meta: {
  131. activeMenu: null,
  132. alwaysShow: false,
  133. frameSrc: '',
  134. hidden: false,
  135. icon: '',
  136. isFrame: 0,
  137. isRoot: false,
  138. noCache: false,
  139. query: '',
  140. title: '预防检查',
  141. },
  142. name: '/disaster-prevention/disaster-precaution',
  143. parentId: 1022,
  144. path: 'disaster-precaution',
  145. redirect: '',
  146. },
  147. {
  148. component: '/todo/todo',
  149. id: 1032,
  150. meta: {
  151. activeMenu: null,
  152. alwaysShow: false,
  153. frameSrc: '',
  154. hidden: false,
  155. icon: '',
  156. isFrame: 0,
  157. isRoot: false,
  158. noCache: false,
  159. query: '',
  160. title: '灾害处置',
  161. },
  162. name: '/disaster-prevention/disaster-control',
  163. parentId: 1022,
  164. path: 'disaster-control',
  165. redirect: '',
  166. },
  167. ],
  168. component: 'MENU_LAYOUT',
  169. id: 1022,
  170. meta: {
  171. activeMenu: null,
  172. alwaysShow: false,
  173. frameSrc: '',
  174. hidden: false,
  175. icon: 'CameraOutlined',
  176. isFrame: 0,
  177. isRoot: false,
  178. noCache: false,
  179. query: '',
  180. title: '灾害防范',
  181. },
  182. name: 'DisasterPrevention',
  183. parentId: -1,
  184. path: '/disaster-prevention',
  185. redirect: '',
  186. },
  187. ];
  188. export default [
  189. {
  190. url: '/eye_api_bak/api/admin/menu/getRouters',
  191. timeout: 1000,
  192. method: 'get',
  193. response: () => {
  194. return resultSuccess(list);
  195. },
  196. },
  197. ];