basic.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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/modelchannel/model3D/home',
  76. name: 'micro-vent-3dModal-modelchannel-model3D-home',
  77. component: () => import('/@/views/vent/home/colliery/index.vue'),
  78. meta: {
  79. title: '通防综合管控',
  80. hideBreadcrumb: true,
  81. hideMenu: true,
  82. },
  83. ver: '1',
  84. },
  85. {
  86. path: '/micro-vent-3dModal/gas-pipe-net/home',
  87. name: 'gas-pipe-net-home',
  88. component: () => import('/@/views/vent/gas/gasPipeNet/index.vue'),
  89. meta: {
  90. title: '瓦斯管网监测',
  91. hideBreadcrumb: true,
  92. hideMenu: true,
  93. },
  94. ver: '1',
  95. },
  96. {
  97. path: '/micro-vent-3dModal/dashboard/analysis',
  98. name: 'micro-vent-3dModal-dashboard-analysis',
  99. component: () => import('/@/views/vent/monitorManager/deviceMonitor/index.vue'),
  100. meta: {
  101. title: '通防综合管控',
  102. hideBreadcrumb: true,
  103. hideMenu: true,
  104. },
  105. ver: '1',
  106. },
  107. {
  108. path: '/micro-need-air/:path(.*)*',
  109. name: 'micro-need-air',
  110. component: () => import('/@/components/vent/micro/needAir.vue'),
  111. meta: {
  112. title: '需风量分析系统',
  113. hideBreadcrumb: true,
  114. hideMenu: true,
  115. },
  116. ver: '1',
  117. },
  118. {
  119. path: '/micro-vent-doc/:path(.*)*',
  120. name: 'micro-vent-doc',
  121. component: () => import('/@/components/vent/micro/ventDoc.vue'),
  122. meta: {
  123. title: '内业管理系统',
  124. hideBreadcrumb: true,
  125. hideMenu: true,
  126. },
  127. ver: '1',
  128. },
  129. ],
  130. ver: '1',
  131. };
  132. export const REDIRECT_ROUTE: AppRouteRecordRaw = {
  133. path: '/redirect',
  134. component: LAYOUT,
  135. name: 'RedirectTo',
  136. meta: {
  137. title: REDIRECT_NAME,
  138. hideBreadcrumb: true,
  139. hideMenu: true,
  140. },
  141. children: [
  142. {
  143. path: '/redirect/:path(.*)',
  144. name: REDIRECT_NAME,
  145. component: () => import('/@/views/sys/redirect/index.vue'),
  146. meta: {
  147. title: REDIRECT_NAME,
  148. hideBreadcrumb: true,
  149. },
  150. ver: '1',
  151. },
  152. ],
  153. ver: '1',
  154. };
  155. export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
  156. path: '/error-log',
  157. name: 'ErrorLog',
  158. component: LAYOUT,
  159. redirect: '/error-log/list',
  160. meta: {
  161. title: 'ErrorLog',
  162. hideBreadcrumb: true,
  163. hideChildrenInMenu: true,
  164. },
  165. children: [
  166. {
  167. path: 'list',
  168. name: 'ErrorLogList',
  169. component: () => import('/@/views/sys/error-log/index.vue'),
  170. meta: {
  171. title: t('routes.basic.errorLogList'),
  172. hideBreadcrumb: true,
  173. currentActiveMenu: '/error-log',
  174. },
  175. ver: '1',
  176. },
  177. ],
  178. ver: '1',
  179. };