basic.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME, QIANKUN_ROUTE_NAME, QIANKUN_COMPONENT } from '/@/router/constant';
  4. // 404 on a page
  5. export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
  6. path: '/:path(.*)*',
  7. name: PAGE_NOT_FOUND_NAME,
  8. component: LAYOUT,
  9. meta: {
  10. title: 'ErrorPage',
  11. hideBreadcrumb: true,
  12. hideMenu: true,
  13. },
  14. children: [
  15. {
  16. path: '/:path(.*)*',
  17. name: PAGE_NOT_FOUND_NAME,
  18. component: EXCEPTION_COMPONENT,
  19. meta: {
  20. title: 'ErrorPage',
  21. hideBreadcrumb: true,
  22. hideMenu: true,
  23. },
  24. ver: '1',
  25. },
  26. ],
  27. ver: '1',
  28. };
  29. export const DeviceTableRoute: AppRouteRecordRaw = {
  30. path: '/monitorChannel/deviceMonitor',
  31. name: 'deviceMonitor',
  32. component: LAYOUT,
  33. meta: {
  34. title: '设备监测',
  35. hideBreadcrumb: true,
  36. hideMenu: true,
  37. },
  38. children: [
  39. {
  40. path: '/:id',
  41. name: '',
  42. component: () => import('/@/views/vent/monitorManager/safetyMonitor/index.vue'),
  43. meta: {
  44. title: '',
  45. hideBreadcrumb: true,
  46. hideMenu: true,
  47. },
  48. ver: '1',
  49. },
  50. ],
  51. ver: '1',
  52. };
  53. export const QIANKUN_ROUTE: AppRouteRecordRaw = {
  54. path: '/micro-:path(.*)*',
  55. name: QIANKUN_ROUTE_NAME,
  56. component: LAYOUT,
  57. meta: {
  58. title: '子应用',
  59. hideBreadcrumb: true,
  60. hideMenu: true,
  61. },
  62. children: [
  63. {
  64. path: '/micro-vent-3dModal/gas/home',
  65. name: 'gas-home',
  66. component: () => import('/@/views/vent/gas/gasHome/index.vue'),
  67. meta: {
  68. title: '抽采综合管控',
  69. hideBreadcrumb: true,
  70. hideMenu: true,
  71. },
  72. ver: '1',
  73. },
  74. {
  75. path: '/micro-vent-3dModal/dashboard/analysis',
  76. name: 'dashboard-analysis',
  77. component: () => import('/@/views/vent/monitorManager/deviceMonitor/index.vue'),
  78. meta: {
  79. title: '通防综合管控',
  80. hideBreadcrumb: true,
  81. hideMenu: true,
  82. },
  83. ver: '1',
  84. },
  85. {
  86. path: '/micro-need-air/:path(.*)*',
  87. name: QIANKUN_ROUTE_NAME,
  88. component: QIANKUN_COMPONENT,
  89. meta: {
  90. title: '子应用',
  91. hideBreadcrumb: true,
  92. hideMenu: true,
  93. },
  94. ver: '1',
  95. },
  96. ],
  97. ver: '1',
  98. };
  99. export const REDIRECT_ROUTE: AppRouteRecordRaw = {
  100. path: '/redirect',
  101. component: LAYOUT,
  102. name: 'RedirectTo',
  103. meta: {
  104. title: REDIRECT_NAME,
  105. hideBreadcrumb: true,
  106. hideMenu: true,
  107. },
  108. children: [
  109. {
  110. path: '/redirect/:path(.*)',
  111. name: REDIRECT_NAME,
  112. component: () => import('/@/views/sys/redirect/index.vue'),
  113. meta: {
  114. title: REDIRECT_NAME,
  115. hideBreadcrumb: true,
  116. },
  117. ver: '1',
  118. },
  119. ],
  120. ver: '1',
  121. };
  122. export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
  123. path: '/error-log',
  124. name: 'ErrorLog',
  125. component: LAYOUT,
  126. redirect: '/error-log/list',
  127. meta: {
  128. title: 'ErrorLog',
  129. hideBreadcrumb: true,
  130. hideChildrenInMenu: true,
  131. },
  132. children: [
  133. {
  134. path: 'list',
  135. name: 'ErrorLogList',
  136. component: () => import('/@/views/sys/error-log/index.vue'),
  137. meta: {
  138. title: t('routes.basic.errorLogList'),
  139. hideBreadcrumb: true,
  140. currentActiveMenu: '/error-log',
  141. },
  142. ver: '1',
  143. },
  144. ],
  145. ver: '1',
  146. };