Newer
Older
SpaceIntegration_front / src / router / modules / main.ts
liyaguang on 30 Oct 2023 2 KB 巡检管理调试
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/recognition',
    component: Layout,
    redirect: '/rlist',
    name: 'Recognition',
    meta: {
      title: '第三方施工智能识别管理',
      icon: 'ep:key',
      auth: '/recognition',
    },
    children: [
      {
        path: '/rlist',
        component: () => import('@/views/main/recognition/index.vue'),
        name: 'RecognitionMap',
        meta: {
          title: '第三方施工智能识别管理',
          icon: 'ep:key',
          auth: '/recognition',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/recognition',
        },
      },
    ],
  },
  {
    path: '/analyse',
    component: Layout,
    redirect: '/alist',
    name: 'Analyse',
    meta: {
      title: '风险融合',
      icon: 'ep:key',
      auth: '/analyse',
    },
    children: [
      {
        path: '/alist',
        component: () => import('@/views/main/analyse/index.vue'),
        name: 'AnalyseMap',
        meta: {
          title: '风险融合',
          icon: 'ep:key',
          auth: '/analyse',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/analyse',
        },
      },
    ],
  },
  {
    path: '/database',
    component: Layout,
    redirect: '/dlist',
    name: 'Database',
    meta: {
      title: '管线占压',
      icon: 'ep:key',
      auth: '/database',
    },
    children: [
      {
        path: '/dlist',
        component: () => import('@/views/main/database/index.vue'),
        name: 'DatabaseMap',
        meta: {
          title: '管线占压',
          icon: 'ep:key',
          auth: '/database',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/database',
        },
      },
    ],
  },
  {
    path: '/undergroundCavity',
    component: Layout,
    redirect: '/ulist',
    name: 'undergroundCavity',
    meta: {
      title: '地下空洞',
      icon: 'ep:key',
      auth: '/undergroundCavity',
    },
    children: [
      {
        path: '/ulist',
        component: () => import('@/views/main/undergroundCavity/index.vue'),
        name: 'undergroundCavityMap',
        meta: {
          title: '地下空洞',
          icon: 'ep:key',
          auth: '/undergroundCavity',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/undergroundCavity',
        },
      },
    ],
  },
]

export default routes