Newer
Older
xc-metering-front / src / router / modules / tested.ts
liyaguang on 20 Jul 2023 2 KB feat(*): 子系统路由菜单
import type { Route } from '@/global'

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

const routes: Route.recordRaw[] = [
  {
    path: '/testeddashboard',
    component: Layout,
    redirect: '/tdashboard',
    name: 'TDashboard',
    meta: {
      title: '首页看板',
      icon: 'ep:key',
      auth: '/tested/dashboard',
    },
    children: [
      {
        path: '/tdashboard',
        component: () => import('@/views/dashboard.vue'),
        name: 'TDashboardPage',
        meta: {
          title: '区域管理',
          icon: 'ep:key',
          auth: '/tested/dashboard',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/testeddashboard',
        },
      },
    ],
  },
  {
    path: '/tested',
    component: Layout,
    redirect: '/index3',
    name: 'Metering',
    meta: {
      title: '受检设备',
      icon: 'ep:key',
      auth: '/tested/index',
    },
    children: [
      {
        path: '/index3',
        component: Layout,
        redirect: '/list3',
        name: 'Index113',
        meta: {
          title: '区域管理',
          icon: 'ep:key',
          auth: '/tested/index',
        },
        children: [
          {
            path: '/list3',
            name: 'AreaList122',
            component: () => import('@/views/tested/index.vue'),
            meta: {
              title: '区域管理',
              auth: '/tested/index',
              sidebar: false,
              breadcrumb: false,
              activeMenu: '/index3',
            },
          },
        ],
      },
      {
        path: '/index4',
        component: Layout,
        redirect: '/list4',
        name: 'Index1134',
        meta: {
          title: '区域管理',
          icon: 'ep:key',
          // auth: '/tested/index',
        },
        children: [
          {
            path: '/list4',
            name: 'a2a222',
            component: () => import('@/views/dashboard.vue'),
            meta: {
              title: '区域管理',
              // auth: '/tested/index',
              sidebar: false,
              breadcrumb: false,
              activeMenu: '/index4',
            },
          },
        ],
      },
    ],
  },
]

export default routes