

/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
export const doorSysRouters = [
  {
    path: '/door',
    name: 'Door',
    redirect: '/door/alarm',
    hidden: true,
    meta: {
      title: '营门管理子系统',
      permission: ['/door'],
      isSys: true
    }
  },
  {
    path: '/door/video',
    component: Layout,
    redirect: '/door/video/monitor',
    name: 'DoorVideo',
    alwaysShow: true,
    meta: {
      title: '视频管理',
      icon: 'icon-video', // 图标
      permission: ['/door/video'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/video/monitor',
        name: 'DoorVideoMonitor',
        component: () => import('@/views/video/monitor'),
        meta: { title: '实时视频', icon: '', permission: ['/door/video/monitor'], keepAlive: true }
      },
      {
        path: '/door/video/history',
        name: 'DoorVideoHistory',
        component: () => import('@/views/video/history'),
        meta: { title: '历史视频', icon: '', permission: ['/door/video/history'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/overview',
    component: OverviewLayout,
    redirect: '/door/overview/device',
    name: 'DoorOverview',
    alwaysShow: true,
    meta: {
      title: '运行总览',
      icon: '', // 图标
      permission: ['/door/overview'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/overview/device',
        name: 'DoorOverviewDevice',
        component: () => import('@/views/overview/doorIndex'),
        meta: { title: '营门总览', icon: '', permission: ['/door/overview/device'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/alarm',
    component: Layout,
    redirect: '/door/alarm/now',
    name: 'DoorAlarm',
    alwaysShow: true,
    meta: {
      title: '报警管理',
      icon: 'icon-alarm', // 图标
      permission: ['/door/alarm'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/alarm/now',
        name: 'DoorAlarmNow',
        component: () => import('@/views/alarm/alarmNow'),
        meta: { title: '当前报警', icon: '', permission: ['/door/alarm/now'], keepAlive: true }
      },
      {
        path: '/door/alarm/list',
        name: 'DoorAlarmList',
        component: () => import('@/views/alarm/alarmList'),
        meta: { title: '报警记录', icon: '', permission: ['/door/alarm/list'], keepAlive: true }
      },
      {
        path: '/door/alarm/position',
        name: 'DoorAlarmPostion',
        hidden: true,
        component: () => import('@/views/alarm/alarmPosition'),
        meta: { title: '报警位置', icon: '', permission: ['/door/alarm/position'], keepAlive: true }
      },
      {
        path: '/door/alarm/video',
        name: 'DoorAlarmVideo',
        hidden: true,
        component: () => import('@/views/alarm/alarmMonitor'),
        meta: { title: '报警视频', icon: '', permission: ['/door/alarm/video'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/visitor',
    component: Layout,
    redirect: '/door/visitor/add',
    name: 'DoorVisitor',
    alwaysShow: true,
    meta: {
      title: '访客管理',
      icon: 'icon-visitor', // 图标
      permission: ['/door/visitor'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/visitor/add',
        name: 'DoorVisitorAdd',
        component: () => import('@/views/visitor/visitorAdd'),
        meta: { title: '访客登记', icon: '', permission: ['/door/visitor/add'], keepAlive: true }
      },
      {
        path: '/door/visitor/addCar',
        name: 'DoorVisitorAddCar',
        component: () => import('@/views/visitor/visitorAddCar'),
        meta: { title: '访客车辆登记', icon: '', permission: ['/door/visitor/addCar'], keepAlive: true }
      },
      {
        path: '/door/visitor/today',
        name: 'DoorVisitorToday',
        component: () => import('@/views/visitor/visitorTodayList'),
        meta: { title: '当日来访人员', icon: '', permission: ['/door/visitor/today'], keepAlive: true }
      },
      {
        path: '/door/visitor/carToday',
        name: 'DoorVisitorCarToday',
        component: () => import('@/views/visitor/visitorCarTodayList'),
        meta: { title: '当日来访车辆', icon: '', permission: ['/door/visitor/carToday'], keepAlive: true }
      },
      {
        path: '/door/visitor/list',
        name: 'DoorVisitorList',
        component: () => import('@/views/visitor/visitorList'),
        meta: { title: '来访记录', icon: '', permission: ['/door/visitor/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/staff',
    component: Layout,
    redirect: '/door/staff',
    name: 'DoorStaff',
    alwaysShow: true,
    meta: {
      title: '人员管理',
      icon: 'icon-person', // 图标
      permission: ['/door/staff'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/staff/add',
        name: 'DoorStaffAdd',
        component: () => import('@/views/staff/staffAdd'),
        meta: { title: '人员登记', icon: '', permission: ['/door/staff/add'], keepAlive: true }
      },
      {
        path: '/door/staff/list',
        name: 'DoorStaffList',
        component: () => import('@/views/staff/staffList'),
        meta: { title: '人员列表', icon: '', permission: ['/door/staff/list'], keepAlive: true }
      },
      {
        path: '/door/staff/edit',
        name: 'DoorStaffEdit',
        component: () => import('@/views/staff/staffEdit'),
        hidden: true,
        meta: { title: '人员编辑', icon: '', permission: ['/door/staff/edit'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/car',
    component: Layout,
    redirect: '/door/car',
    name: 'DoorCar',
    alwaysShow: true,
    meta: {
      title: '车辆管理',
      icon: 'icon-car', // 图标
      permission: ['/door/car'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/car/list',
        name: 'DoorCarList',
        component: () => import('@/views/car/carList'),
        meta: { title: '车辆列表', icon: '', permission: ['/door/car/list'], keepAlive: true }
      },
      {
        path: '/door/car/add',
        name: 'DoorCarAdd',
        hidden: true,
        component: () => import('@/views/car/carAdd'),
        meta: { title: '车辆登记', icon: '', permission: ['/door/car/add'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/device',
    component: Layout,
    redirect: '/door/device',
    name: 'DoorDevice',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-device', // 图标
      permission: ['/door/device'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/device/list',
        name: 'DoorDeviceList',
        component: () => import('@/views/deviceManage/deviceList'),
        meta: { title: '设备列表', icon: '', permission: ['/door/device/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/statistics',
    component: Layout,
    redirect: '/door/statistics',
    name: 'DoorStatistics',
    alwaysShow: true,
    meta: {
      title: '统计管理',
      icon: 'icon-statistics', // 图标
      permission: ['/door/statistics'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/statistics/inOutPerson',
        name: 'DoorInOutPerson',
        component: () => import('@/views/statistics/inOutPerson'),
        meta: { title: '人员进出记录', icon: '', permission: ['/door/statistics/inOutPerson'], keepAlive: true }
      },
      {
        path: '/door/statistics/inOutCar',
        name: 'DoorInOutCar',
        component: () => import('@/views/statistics/inOutCar'),
        meta: { title: '车辆进出记录', icon: '', permission: ['/door/statistics/inOutCar'], keepAlive: true }
      },
      {
        path: '/door/statistics/personDuration',
        name: 'DoorPersonDuration',
        component: () => import('@/views/statistics/personDuration'),
        meta: { title: '人员所处时长统计', icon: '', permission: ['/door/statistics/personDuration'], keepAlive: true }
      },
      {
        path: '/door/statistics/carDuration',
        name: 'DoorCarDuration',
        component: () => import('@/views/statistics/carDuration'),
        meta: { title: '车辆所处时长统计', icon: '', permission: ['/door/statistics/carDuration'], keepAlive: true }
      },
      {
        path: '/door/statistics/doorCount',
        name: 'DoorCount',
        component: () => import('@/views/statistics/doorCount'),
        meta: { title: '营门出入次数统计', icon: '', permission: ['/door/statistics/doorCount'], keepAlive: true }
      }
    ]
  },
  {
    path: '/door/area',
    component: Layout,
    redirect: '/door/area',
    name: 'DoorArea',
    alwaysShow: true,
    meta: {
      title: '区域管理',
      icon: 'icon-area', // 图标
      permission: ['/door/area'], // 权限名称
      sys: '/door'
    },
    children: [
      {
        path: '/door/area/list',
        name: 'DoorAreaList',
        component: () => import('@/views/area/areaList'),
        meta: { title: '区域列表', icon: '', permission: ['/door/area/list'], keepAlive: true }
      }
    ]
  }
]
