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

const meta = { requiresAuth: true }

export default {
  path : '/dormitory',
  name : 'dormitory',
  meta,
  redirect: { name: 'dormitory-manageBlock'},
  component: layoutHeaderAside,
  children : (pre =>[
    {path: 'manageBlock',name:`${pre}manageBlock`,  component: () => import('@/views/dormitory/manageBlock'), meta: { meta, title: '楼栋管理',cache:true } },
    {path: 'manageRoom',name:`${pre}manageRoom`,  component: () => import('@/views/dormitory/manageRoom'), meta: { meta, title: '房间管理',cache:true } },
    {path: 'manageCheckIn',name:`${pre}manageCheckIn`,  component: () => import('@/views/dormitory/manageCheckIn'), meta: { meta, title: '入住管理',cache:true } },
    {path: 'dormitoryRules',name:`${pre}dormitoryRules`,  component: () => import('@/views/dormitory/dormitoryRules'), meta: { meta, title: '就寝规则',cache:true } },
    {path: 'dormitoryExcel', name: `${pre}dormitoryExcel`, meta: {meta, title: '宿舍报表', cache: true},},
    {path: 'dormitoryExcel/dormitoryStudentRecord',name:`${pre}dormitoryStudentRecord`,  component: () => import('@/views/dormitory/dormitoryExcel/dormitoryStudentRecord'), meta: { meta, title: '学生住宿记录',cache:true } },
    {path: 'dormitoryExcel/dormitorySignTotal',name:`${pre}dormitorySignTotal`,  component: () => import('@/views/dormitory/dormitoryExcel/dormitorySignTotal'), meta: { meta, title: '学生签到统计',cache:true } },
    {path: 'dormitoryExcel/NoCheckInRecord',name:`${pre}NoCheckInRecord`,  component: () => import('@/views/dormitory/dormitoryExcel/NoCheckInRecord'), meta: { meta, title: '未入住记录',cache:true } },

  ])('dormitory-')
}
