| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- import type { AppRouteRecordRaw } from '/@/router/types';
- import { t } from '/@/hooks/web/useI18n';
- import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME, QIANKUN_ROUTE_NAME, QIANKUN_COMPONENT } from '/@/router/constant';
- // 404 on a page
- export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
- path: '/:path(.*)*',
- name: PAGE_NOT_FOUND_NAME,
- component: LAYOUT,
- meta: {
- title: 'ErrorPage',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- children: [
- {
- path: '/:path(.*)*',
- name: PAGE_NOT_FOUND_NAME,
- component: EXCEPTION_COMPONENT,
- meta: {
- title: 'ErrorPage',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- ],
- ver: '1',
- };
- export const DeviceTableRoute: AppRouteRecordRaw = {
- path: '/monitorChannel/deviceMonitor',
- name: 'deviceMonitor',
- component: LAYOUT,
- meta: {
- title: '设备监测',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- children: [
- {
- path: '/:id',
- name: '',
- component: () => import('/@/views/vent/monitorManager/safetyMonitor/index.vue'),
- meta: {
- title: '',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- ],
- ver: '1',
- };
- export const QIANKUN_ROUTE: AppRouteRecordRaw = {
- path: '/micro-:path(.*)*',
- name: QIANKUN_ROUTE_NAME,
- component: LAYOUT,
- meta: {
- title: '子应用',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- children: [
- {
- path: '/micro-vent-3dModal/gas/home',
- name: 'gas-home',
- component: () => import('/@/views/vent/gas/gasHome/index.vue'),
- meta: {
- title: '抽采综合管控',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- {
- path: '/micro-vent-3dModal/modelchannel/model3D/home',
- name: 'micro-vent-3dModal-modelchannel-model3D-home',
- component: () => import('/@/views/vent/home/colliery/index.vue'),
- meta: {
- title: '通防综合管控',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- {
- path: '/micro-vent-3dModal/gas-pipe-net/home',
- name: 'gas-pipe-net-home',
- component: () => import('/@/views/vent/gas/gasPipeNet/index.vue'),
- meta: {
- title: '瓦斯管网监测',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- {
- path: '/micro-vent-3dModal/dashboard/analysis',
- name: 'micro-vent-3dModal-dashboard-analysis',
- component: () => import('/@/views/vent/monitorManager/deviceMonitor/index.vue'),
- meta: {
- title: '通防综合管控',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- {
- path: '/micro-need-air/:path(.*)*',
- name: 'micro-need-air',
- component: () => import('/@/components/vent/micro/needAir.vue'),
- meta: {
- title: '需风量分析系统',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- {
- path: '/micro-vent-doc/:path(.*)*',
- name: 'micro-vent-doc',
- component: () => import('/@/components/vent/micro/ventDoc.vue'),
- meta: {
- title: '内业管理系统',
- hideBreadcrumb: true,
- hideMenu: true,
- },
- ver: '1',
- },
- ],
- ver: '1',
- };
- export const REDIRECT_ROUTE: AppRouteRecordRaw = {
- path: '/redirect',
- component: LAYOUT,
- name: 'RedirectTo',
- meta: {
- title: REDIRECT_NAME,
- hideBreadcrumb: true,
- hideMenu: true,
- },
- children: [
- {
- path: '/redirect/:path(.*)',
- name: REDIRECT_NAME,
- component: () => import('/@/views/sys/redirect/index.vue'),
- meta: {
- title: REDIRECT_NAME,
- hideBreadcrumb: true,
- },
- ver: '1',
- },
- ],
- ver: '1',
- };
- export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
- path: '/error-log',
- name: 'ErrorLog',
- component: LAYOUT,
- redirect: '/error-log/list',
- meta: {
- title: 'ErrorLog',
- hideBreadcrumb: true,
- hideChildrenInMenu: true,
- },
- children: [
- {
- path: 'list',
- name: 'ErrorLogList',
- component: () => import('/@/views/sys/error-log/index.vue'),
- meta: {
- title: t('routes.basic.errorLogList'),
- hideBreadcrumb: true,
- currentActiveMenu: '/error-log',
- },
- ver: '1',
- },
- ],
- ver: '1',
- };
|