routers.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. children: [
  5. {
  6. children: [],
  7. component: '/todo/todo',
  8. id: 1019,
  9. meta: {
  10. activeMenu: null,
  11. alwaysShow: false,
  12. frameSrc: '',
  13. hidden: false,
  14. icon: '',
  15. isFrame: 0,
  16. isRoot: false,
  17. noCache: false,
  18. query: '',
  19. title: '菜单1',
  20. },
  21. name: ' ',
  22. parentId: 1018,
  23. path: 'menu1',
  24. redirect: '',
  25. },
  26. ],
  27. component: 'MENU_LAYOUT',
  28. id: 1018,
  29. meta: {
  30. activeMenu: null,
  31. alwaysShow: false,
  32. frameSrc: '',
  33. hidden: false,
  34. icon: 'ApartmentOutlined',
  35. isFrame: 0,
  36. isRoot: false,
  37. noCache: false,
  38. query: '',
  39. title: '院内安全态势',
  40. },
  41. name: 'Scene',
  42. parentId: -1,
  43. path: '/institute-safety',
  44. redirect: '',
  45. },
  46. {
  47. children: [
  48. {
  49. children: [],
  50. component: '/todo/todo',
  51. id: 1023,
  52. meta: {
  53. activeMenu: null,
  54. alwaysShow: false,
  55. frameSrc: '',
  56. hidden: false,
  57. icon: '',
  58. isFrame: 0,
  59. isRoot: false,
  60. noCache: false,
  61. query: '',
  62. title: '生产安全菜单1',
  63. },
  64. name: 'DeviceCamera',
  65. parentId: 1022,
  66. path: 'camera',
  67. redirect: '',
  68. },
  69. {
  70. children: [],
  71. component: '/todo/todo',
  72. id: 1024,
  73. meta: {
  74. activeMenu: null,
  75. alwaysShow: false,
  76. frameSrc: '',
  77. hidden: false,
  78. icon: '',
  79. isFrame: 0,
  80. isRoot: false,
  81. noCache: false,
  82. query: '',
  83. title: '生产安全菜单2',
  84. },
  85. name: 'DeviceNVR',
  86. parentId: 1022,
  87. path: 'nvr',
  88. redirect: '',
  89. },
  90. ],
  91. component: 'MENU_LAYOUT',
  92. id: 1022,
  93. meta: {
  94. activeMenu: null,
  95. alwaysShow: false,
  96. frameSrc: '',
  97. hidden: false,
  98. icon: 'CameraOutlined',
  99. isFrame: 0,
  100. isRoot: false,
  101. noCache: false,
  102. query: '',
  103. title: '生产安全',
  104. },
  105. name: 'Device',
  106. parentId: -1,
  107. path: '/safety',
  108. redirect: '',
  109. },
  110. ];
  111. export default [
  112. {
  113. url: '/eye_api_bak/api/admin/menu/getRouters',
  114. timeout: 1000,
  115. method: 'get',
  116. response: () => {
  117. return resultSuccess(list);
  118. },
  119. },
  120. ];