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

const meta = { requiresAuth: true }

export default {
    path : '/Visitor',
    name : 'Visitor',
    meta,
    redirect: { name: 'visitor-set'},
    component: layoutHeaderAside,
    children : (pre =>[
        {path:'visitorSet/type',name:`${pre}type`,component:()=>import('@/views/Visitor/visitorSet/type'),meta:{meta,title:'访客类型',cache:true}},
        {path:'visitorSet/card',name:`${pre}card`,component:()=>import('@/views/Visitor/visitorSet/card'),meta:{meta,title:'访客卡管理',cache:true}},
        {path:'visitorSet/respondents',name:`${pre}respondents`,component:()=>import('@/views/Visitor/visitorSet/respondents'),meta:{meta,title:'被访人权限',cache:true}},
        {path:'visitorSet/reasons',name:`${pre}reasons`,component:()=>import('@/views/Visitor/visitorSet/reasons'),meta:{meta,title:'访客事由',cache:true}},
        {path:'visitorSet/carry',name:`${pre}carry`,component:()=>import('@/views/Visitor/visitorSet/carry'),meta:{meta,title:'访客携带物品',cache:true}},
        {path:'manage/register',name:`${pre}register`,component:()=>import('@/views/Visitor/manage/register'),meta:{meta,title:'预约登记',cache:true}},
        {path:'manage/audit',name:`${pre}audit`,component:()=>import('@/views/Visitor/manage/audit'),meta:{meta,title:'审核进度',cache:true}},
        {path:'manage/interviewed',name:`${pre}interviewed`,component:()=>import('@/views/Visitor/manage/interviewed'),meta:{meta,title:'受访查询',cache:true}},
        {path:'manage/blacklist',name:`${pre}blacklist`,component:()=>import('@/views/Visitor/manage/blacklist'),meta:{meta,title:'访客黑名单',cache:true}},
        {path:'manage/goods',name:`${pre}goods`,component:()=>import('@/views/Visitor/manage/goods'),meta:{meta,title:'访客物品寄存',cache:true}},
        {path:'visitorExcel/registerExcel',name:`${pre}registerExcel`,component:()=>import('@/views/Visitor/visitorExcel/registerExcel'),meta:{meta,title:'来访人员查询',cache:true}},
        {path:'visitorExcel/pathExcel',name:`${pre}pathExcel`,component:()=>import('@/views/Visitor/visitorExcel/pathExcel'),meta:{meta,title:'访客通行轨迹',cache:true}},
        {path:'visitorExcel/interviewExcel',name:`${pre}interviewExcel`,component:()=>import('@/views/Visitor/visitorExcel/interviewExcel'),meta:{meta,title:'受访统计',cache:true}},
    ])('Visitor-')
}
