import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/accessControl',
  name: 'accessControl',
  meta,
  redirect: { name: 'accessControl-holidayRegister' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'holidayRegister', name: `${pre}holidayRegister`, component: () => import('@/views/accessControl/holidayRegister'), meta: { meta, title: '节假日登记',cache:true } },
    { path: 'throughTime', name: `${pre}throughTime`, component: () => import('@/views/accessControl/throughTime'), meta: { meta, title: '通行时间组',cache:true } },
    { path: 'settingPassword', name: `${pre}settingPassword`, component: () => import('@/views/accessControl/settingPassword'), meta: { meta, title: '密码设置',cache:true } },
    { path: 'openDoor', name: `${pre}openDoor`, component: () => import('@/views/accessControl/openDoor'), meta: { meta, title: '多卡开门',cache:true } },
    { path: 'workPattern', name: `${pre}workPattern`, component: () => import('@/views/accessControl/workPattern'), meta: { meta, title: '门禁工作模式',cache:true } },
    { path: 'throughName', name: `${pre}throughName`, component: () => import('@/views/accessControl/throughName'), meta: { meta, title: '通行名单下发',cache:true } },
    { path: 'throughRecord', name: `${pre}throughRecord`, component: () => import('@/views/accessControl/throughRecord'), meta: { meta, title: '通行记录',cache:true } },
    { path: 'inlineCheck', name: `${pre}inlineCheck`, component: () => import('@/views/accessControl/inlineCheck'), meta: { meta, title: '在线审核开门',cache:true } },
  ])('accessControl-')
}