import Layout from '@/layout';

const sweepCheckRoutes = {
  path: '/sweep-check',
  component: Layout,
  redirect: '/sweep-check/index',
  name: 'sweep-check',
  alwaysShow: true,
  meta: {
    title: '隐患排查治理',
    icon: 'star',
    permissions: ['view menu admin'],
  },
  children: [
    {
      path: 'security',
      component: () => import('@/views/sweep-check/security'),
      name: 'SecurityCheck',
      meta: { title: '安检计划', icon: 'list', permissions: ['manage admin'] },
    }, {
      path: 'record',
      component: () => import('@/views/sweep-check/record'),
      name: 'Record',
      meta: { title: '隐患排查记录', icon: 'list', permissions: ['manage admin'] },
    }, {
      path: 'ledger',
      component: () => import('@/views/sweep-check/ledger'),
      name: 'Ledger',
      meta: { title: '隐患台账', icon: 'list', permissions: ['manage admin'] },
    },
  ],
};
export default sweepCheckRoutes;
