/* Layout */
import Layout from '../../views/layout/Layout'

export const baseRoutes = [
  {
    path: 'RecordManage',
    component: Layout,
    redirect: '/record',
    name: 'RecordManage',
    meta: {
      title: '识别记录',
      icon: 'icon-config', // 图标
      permission: ['/record']// 权限名称
    },
    children: [{
      path: '/record',
      name: 'Record',
      component: () => import('@/views/query/listRecord'),
      meta: { title: '识别记录', icon: 'dashboard', permission: ['/record'] }
    }]
  },
  {
    path: '/personManage',
    component: Layout,
    redirect: '/staff',
    name: 'PersonManage',
    meta: {
      title: '人员管理',
      icon: 'icon-config', // 图标
      permission: ['/person']// 权限名称
    },
    children: [
      {
        path: '/staff',
        name: 'Staff',
        component: () => import('@/views/memberManage/listStaff'),
        meta: { title: '员工管理', icon: '', permission: ['/staff'] }
      },
      {
        path: '/visitor',
        name: 'Visitor',
        component: () => import('@/views/memberManage/listVisitor'),
        meta: { title: '访客管理', icon: '', permission: ['/visitor'] }
      },
      {
        path: '/addStaff',
        name: 'AddStaff',
        hidden: true,
        component: () => import('@/views/memberManage/addPersonIris'),
        meta: { title: '新增员工', icon: '', permission: ['/staff/add'] }
      },
      {
        path: '/updateStaff',
        name: 'UpdateStaff',
        hidden: true,
        component: () => import('@/views/memberManage/addPerson'),
        meta: { title: '编辑员工', icon: '', permission: ['/staff/update'] }
      },
      {
        path: '/addIris',
        name: 'AddIris',
        hidden: true,
        component: () => import('@/views/memberManage/addIris'),
        meta: { title: '采集虹膜', icon: '', permission: ['/iris'] }
      },
      {
        path: '/addVisitor',
        name: 'AddVisiotr',
        hidden: true,
        component: () => import('@/views/memberManage/addPerson'),
        meta: { title: '新增访客', icon: '', permission: ['/visitor/add'] }
      },
      {
        path: '/updateVisitor',
        name: 'UpdateVisitor',
        hidden: true,
        component: () => import('@/views/memberManage/addPerson'),
        meta: { title: '编辑访客', icon: '', permission: ['/device'] }
      }]
  },
  {
    path: 'DeviceManage',
    component: Layout,
    redirect: '/device',
    name: 'DeviceManage',
    meta: {
      title: '设备管理',
      icon: 'icon-config', // 图标
      permission: ['/device']// 权限名称
    },
    children: [{
      path: '/device',
      name: 'Device',
      component: () => import('@/views/deviceManage/listDevice'),
      meta: { title: '设备管理', icon: 'dashboard', permission: ['/device'] }
    }]
  }]
