Newer
Older
smart-metering-front / src / router / modules / workbench.ts
// 总工作台路由
import type { Route } from '@/global'
const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/workbench',
    component: Layout,
    redirect: '/workbench/bench',
    name: 'Workbench',
    meta: {
      title: '总工作台',
      icon: 'icon-workbench',
    },
  },
  {
    path: '/comprehensive',
    component: Layout,
    // redirect: '/comprehensive/approve',
    name: 'Comprehensive',
    meta: {
      title: '计量综合系统',
      icon: 'icon-zh',
    },
    children: [
      {
        path: 'approve',
        name: 'Approve',
        // component: () => import('@/views/business/board/depComprehensive/list.vue'),
        meta: {
          title: '审批提醒',
          // auth: '/device/bench',
          sidebar: true,
          // breadcrumb: true,
          activeMenu: '/comprehensive',
        },
      },
    ],
  },
  {
    path: '/dashboard',
    component: Layout,
    // redirect: '/dashboard',
    name: 'MeterSystem',
    meta: {
      title: '计量业务系统',
      icon: 'icon-business-system',
    },
  },
]
export default routes