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',
    },
    children: [
      {
        path: 'bench',
        name: 'Bench',
        meta: {
          title: '总工作台',
          sidebar: true,
          activeMenu: '/workbench',
        },
      },
      {
        path: 'approve',
        name: 'Approve',
        meta: {
          title: '审批提醒',
          sidebar: true,
          activeMenu: '/workbench',
        },
      },
      {
        path: 'workList',
        name: 'workList',
        meta: {
          title: '工作提醒',
          sidebar: true,
          activeMenu: '/workbench',
        },
      },
      {
        path: 'noticeList',
        name: 'NoticeList',
        meta: {
          title: '通知公告',
          sidebar: true,
          activeMenu: '/workbench',
        },
      },
    ],
  },
  {
    path: '/dashboard',
    component: Layout,
    // redirect: '/dashboard',
    name: 'MeterSystem',
    meta: {
      title: '计量业务系统',
      icon: 'icon-business-system',
    },
  },
]
export default routes