index.ts 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. export const routes: Array<ROUTER.RoutesProps> = [
  3. {
  4. path: '/',
  5. name: '物联网',
  6. meta: {
  7. title: '物联网'
  8. },
  9. component: () => import('@/layout/layout.vue'),
  10. redirect: '/dashboard',
  11. children: [
  12. {
  13. path: '/dashboard',
  14. name: '首页',
  15. icon: 'DashboardOutlined',
  16. component: () => import('@/pages/iot/dashboard/deviceAccess/index.vue')
  17. },
  18. {
  19. path: '/product',
  20. name: '产品模型',
  21. redirect: '/product/index',
  22. icon: 'AppstoreOutlined',
  23. children: [
  24. {
  25. path: '/product/index',
  26. name: '产品模型',
  27. component: () => import('@/pages/iot/model/index.vue')
  28. },
  29. {
  30. path: '/product/detail',
  31. name: '产品模型详情',
  32. hidden: true,
  33. component: () => import('@/pages/iot/model/detail.vue')
  34. }
  35. ]
  36. },
  37. {
  38. path: '/device',
  39. name: '设备',
  40. redirect: '/device/index',
  41. icon: 'RobotOutlined',
  42. children: [
  43. {
  44. path: '/device/index',
  45. name: '所有设备',
  46. component: () => import('@/pages/iot/device/index.vue')
  47. },
  48. {
  49. path: '/device/detail',
  50. name: '设备详情',
  51. hidden: true,
  52. component: () => import('@/pages/iot/device/detail.vue')
  53. },
  54. {
  55. path: '/device/group',
  56. name: '群组',
  57. component: () => import('@/pages/iot/device/group.vue')
  58. }
  59. ]
  60. },
  61. {
  62. path: '/rule',
  63. name: '规则',
  64. redirect: '/rule/forward',
  65. icon: 'AimOutlined',
  66. children: [
  67. {
  68. path: '/rule/forward',
  69. name: '转发规则',
  70. component: () => import('@/pages/iot/rule/forwardRule.vue')
  71. },
  72. {
  73. path: '/rule/link',
  74. name: '联动规则',
  75. component: () => import('@/pages/iot/rule/linkRules.vue')
  76. }
  77. ]
  78. },
  79. {
  80. path: '/devOps',
  81. name: '监控运维',
  82. redirect: '/devOps/report',
  83. icon: 'CodeOutlined',
  84. children: [
  85. {
  86. path: '/devOps/report',
  87. name: '数据监控',
  88. component: () => import('@/pages/iot/devOps/statistReport.vue')
  89. },
  90. {
  91. path: '/devOps/onlineTest',
  92. name: '在线调试',
  93. component: () => import('@/pages/iot/devOps/onlineTest.vue')
  94. },
  95. {
  96. path: '/devOps/mt',
  97. name: '消息追踪',
  98. component: () => import('@/pages/iot/devOps/msgTracking.vue')
  99. },
  100. {
  101. path: '/devOps/nowAlert',
  102. name: '当前告警',
  103. component: () => import('@/pages/iot/devOps/nowAlert.vue')
  104. },
  105. {
  106. path: '/devOps/nowNotice',
  107. name: '当前提醒',
  108. component: () => import('@/pages/iot/devOps/nowNotice.vue')
  109. }
  110. ]
  111. },
  112. {
  113. path: '/dataServer',
  114. name: '数据服务',
  115. redirect: '/dataServer/history',
  116. icon: 'DatabaseOutlined',
  117. children: [
  118. {
  119. path: '/dataServer/history',
  120. name: '历史数据',
  121. component: () => import('@/pages/iot/dataServer/history.vue')
  122. },
  123. {
  124. path: '/dataServer/openApi',
  125. name: '开放接口',
  126. component: () => import('@/pages/iot/dataServer/openApi.vue')
  127. }
  128. ]
  129. },
  130. {
  131. path: '/deviceDoc',
  132. name: '设备接入文档',
  133. component: () => import('@/pages/iot/doc/deviceDoc.vue'),
  134. icon: 'BookOutlined'
  135. },
  136. {
  137. path: '/dataDoc',
  138. name: '数据服务文档',
  139. component: () => import('@/pages/iot/doc/dataDoc.vue'),
  140. icon: 'CoffeeOutlined'
  141. }
  142. ]
  143. },
  144. {
  145. path: '/rts',
  146. name: '视联网',
  147. meta: {
  148. title: '视联网'
  149. },
  150. component: () => import('@/layout/layout.vue'),
  151. redirect: '/stream',
  152. children: [
  153. {
  154. path: '/stream',
  155. name: '视频流管理',
  156. icon: 'PlayCircleOutlined',
  157. component: () => import('@/pages/rts/stream/index.vue')
  158. },
  159. {
  160. path: '/pull',
  161. name: '拉流管理',
  162. icon: 'FallOutlined',
  163. component: () => import('@/pages/rts/pull/index.vue')
  164. },
  165. {
  166. path: '/push',
  167. name: '推流管理',
  168. icon: 'RiseOutlined',
  169. component: () => import('@/pages/rts/push/index.vue')
  170. },
  171. {
  172. path: '/record',
  173. name: '存储配置',
  174. icon: 'FileAddOutlined',
  175. component: () => import('@/pages/rts/record/index.vue')
  176. },
  177. {
  178. path: '/protocol',
  179. name: ' 协议配置',
  180. icon: 'DeploymentUnitOutlined',
  181. component: () => import('@/pages/rts/protocol/index.vue')
  182. },
  183. {
  184. path: '/monitor',
  185. name: '系统监控',
  186. icon: 'ProfileOutlined',
  187. component: () => import('@/pages/rts/monitor/index.vue')
  188. }
  189. ]
  190. }
  191. ]
  192. const router = createRouter({
  193. history: createWebHistory(process.env.BASE_URL),
  194. routes
  195. })
  196. export default router