basic.ts 5.2 KB

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