traffic.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import { id } from 'element-plus/es/locale';
  2. const trafficRoutes = {
  3. id: 4000,
  4. parentId: -1,
  5. name: 'Traffic',
  6. path: '/traffic',
  7. component: 'MENU_LAYOUT',
  8. meta: {
  9. title: '交通安全',
  10. icon: 'CameraOutlined',
  11. isRoot: false,
  12. hidden: false,
  13. noCache: false,
  14. },
  15. children: [
  16. {
  17. id: 4001,
  18. parentId: 4000,
  19. name: 'traffic-overview',
  20. path: 'overview',
  21. component: '/traffic/overview/Overview',
  22. redirect: '',
  23. meta: {
  24. title: '总览',
  25. icon: 'OverviewIcon',
  26. isRoot: false,
  27. hidden: false,
  28. noCache: false,
  29. },
  30. },
  31. {
  32. id: 4002,
  33. parentId: 4000,
  34. name: 'traffic-regulation',
  35. path: 'regulation',
  36. component: '/traffic/regulation/Regulation',
  37. redirect: '',
  38. meta: {
  39. title: '管理规定与通知',
  40. icon: 'TrafficRegulationIcon',
  41. isRoot: false,
  42. hidden: false,
  43. noCache: false,
  44. },
  45. },
  46. {
  47. id: 4003,
  48. parentId: 4000,
  49. name: 'traffic-regulation-item',
  50. path: 'regulation-item',
  51. component: '/traffic/regulation-item/RegulationItem',
  52. redirect: '',
  53. meta: {
  54. title: '管理规定与通知详情',
  55. activeMenu: '/traffic/regulation',
  56. isRoot: false,
  57. hidden: true,
  58. noCache: false,
  59. },
  60. },
  61. {
  62. id: 4004,
  63. parentId: 4000,
  64. name: 'traffic-violation',
  65. path: 'violation',
  66. redirect: '',
  67. meta: {
  68. title: '交通违规管理',
  69. icon: 'TrafficViolationIcon',
  70. isRoot: false,
  71. hidden: false,
  72. noCache: false,
  73. },
  74. children: [
  75. {
  76. id: 400401,
  77. parentId: 4004,
  78. name: 'traffic-violation-act',
  79. path: 'act',
  80. redirect: '',
  81. component: '/traffic/violation/act/Act',
  82. meta: {
  83. title: '违规行为',
  84. isRoot: false,
  85. hidden: false,
  86. noCache: false,
  87. },
  88. },
  89. {
  90. id: 400402,
  91. parentId: 4004,
  92. name: 'traffic-violation-act-item',
  93. path: 'act-item',
  94. component: '/traffic/violation/act-item/ActItem',
  95. meta: {
  96. activeMenu: '/traffic/violation/act',
  97. title: '违规行为详情',
  98. isRoot: false,
  99. hidden: true,
  100. noCache: false,
  101. },
  102. },
  103. {
  104. id: 400403,
  105. parentId: 4004,
  106. name: 'traffic-violation-notice',
  107. path: 'notice',
  108. component: '/traffic/violation/notice/Notice',
  109. meta: {
  110. title: '违规通知',
  111. isRoot: false,
  112. hidden: false,
  113. noCache: false,
  114. },
  115. },
  116. ],
  117. },
  118. {
  119. id: 4005,
  120. parentId: 4000,
  121. name: 'traffic-accident',
  122. path: 'accident',
  123. component: '/traffic/accidents/Accident',
  124. redirect: '',
  125. meta: {
  126. title: '交通事故管理',
  127. icon: 'TrafficAccidentIcon',
  128. isRoot: false,
  129. hidden: false,
  130. noCache: false,
  131. },
  132. },
  133. {
  134. id: 4006,
  135. parentId: 4000,
  136. name: 'traffic-vehicle',
  137. path: 'vehicle',
  138. component: '/traffic/vehicle/Vehicle',
  139. redirect: '',
  140. meta: {
  141. title: '车辆信息管理',
  142. icon: 'TrafficVehicleIcon',
  143. isRoot: false,
  144. hidden: true,
  145. noCache: false,
  146. },
  147. },
  148. ],
  149. };
  150. export default trafficRoutes;