/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
export const regionSysRouters = [
  {
    path: '/region',
    name: 'Region',
    redirect: '/region/alarm',
    hidden: true,
    meta: {
      title: '全域监控子系统',
      permission: ['/region'],
      isSys: true
    }
  },
  {
    path: '/region/video',
    component: Layout,
    redirect: '/region/video/monitor',
    name: 'RegionVideo',
    alwaysShow: true,
    meta: {
      title: '视频管理',
      icon: 'icon-video', // 图标
      permission: ['/region/video'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/video/monitor',
        name: 'RegionVideoMonitor',
        component: () => import('@/views/video/monitor'),
        meta: { title: '实时视频', icon: '', permission: ['/region/video/monitor'], keepAlive: true }
      },
      {
        path: '/region/video/history',
        name: 'RegionVideoHistory',
        component: () => import('@/views/video/history'),
        meta: { title: '历史视频', icon: '', permission: ['/region/video/history'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/overview',
    component: OverviewLayout,
    redirect: '/region/overview/device',
    name: 'RegionOverview',
    alwaysShow: true,
    meta: {
      title: '运行总览',
      icon: '', // 图标
      permission: ['/region/overview'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/overview/device',
        name: 'RegionOverviewDevice',
        component: () => import('@/views/overview/regionIndex'),
        meta: { title: '全域总览', icon: '', permission: ['/region/overview/device'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/alarm',
    component: Layout,
    redirect: '/region/alarm',
    name: 'RegionAlarm',
    alwaysShow: true,
    meta: {
      title: '报警管理',
      icon: 'icon-alarm', // 图标
      permission: ['/region/alarm'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/alarm/now',
        name: 'RegionAlarmNow',
        component: () => import('@/views/alarm/alarmNow'),
        meta: { title: '当前报警', icon: '', permission: ['/region/alarm/now'], keepAlive: true }
      },
      {
        path: '/region/alarm/list',
        name: 'RegionAlarmList',
        component: () => import('@/views/alarm/alarmList'),
        meta: { title: '报警记录', icon: '', permission: ['/region/alarm/list'], keepAlive: true }
      },
      {
        path: '/region/alarm/position',
        name: 'RegionAlarmPostion',
        hidden: true,
        component: () => import('@/views/alarm/alarmPosition'),
        meta: { title: '报警位置', icon: '', permission: ['/region/alarm/position'], keepAlive: true }
      },
      {
        path: '/region/alarm/video',
        name: 'RegionAlarmVideo',
        hidden: true,
        component: () => import('@/views/alarm/alarmMonitor'),
        meta: { title: '报警视频', icon: '', permission: ['/region/alarm/video'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/staff',
    component: Layout,
    redirect: '/region/staff',
    name: 'RegionStaff',
    alwaysShow: true,
    meta: {
      title: '人员管理',
      icon: 'icon-person', // 图标
      permission: ['/region/staff'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/staff/add',
        name: 'RegionStaffAdd',
        component: () => import('@/views/staff/staffAdd'),
        hidden: true,
        meta: { title: '人员登记', icon: '', permission: ['/region/staff/add'], keepAlive: true }
      },
      {
        path: '/region/staff/edit',
        name: 'RegionStaffEdit',
        component: () => import('@/views/staff/staffEdit'),
        hidden: true,
        meta: { title: '人员编辑', icon: '', permission: ['/region/staff/edit'], keepAlive: true }
      },
      {
        path: '/region/staff/list',
        name: 'RegionStaffList',
        component: () => import('@/views/staff/staffList'),
        meta: { title: '人员列表', icon: '', permission: ['/region/staff/list'], keepAlive: true }
      },
      {
        path: '/region/car/list',
        name: 'RegionCarList',
        component: () => import('@/views/car/carList'),
        meta: { title: '车辆列表', icon: '', permission: ['/region/car/list'], keepAlive: true }
      },
      {
        path: '/region/visitor/today',
        name: 'RegionVisitorToday',
        component: () => import('@/views/visitor/visitorTodayList'),
        meta: { title: '当日来访人员', icon: '', permission: ['/region/visitor/today'], keepAlive: true }
      },
      {
        path: '/region/visitor/carToday',
        name: 'RegionVisitorCarToday',
        component: () => import('@/views/visitor/visitorCarTodayList'),
        meta: { title: '当日来访车辆', icon: '', permission: ['/region/visitor/carToday'], keepAlive: true }
      },
      {
        path: '/region/visitor/list',
        name: 'RegionVisitorList',
        component: () => import('@/views/visitor/visitorList'),
        meta: { title: '来访记录', icon: '', permission: ['/region/visitor/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/area',
    component: Layout,
    redirect: '/region/area',
    name: 'RegionArea',
    alwaysShow: true,
    meta: {
      title: '区域管理',
      icon: 'icon-area', // 图标
      permission: ['/region/area'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/area/list',
        name: 'RegionAreaList',
        component: () => import('@/views/area/areaList'),
        meta: { title: '区域列表', icon: '', permission: ['/region/area/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/device',
    component: Layout,
    redirect: '/region/device',
    name: 'RegionDevice',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-device', // 图标
      permission: ['/region/device'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/device/list',
        name: 'RegionDeviceList',
        component: () => import('@/views/deviceManage/deviceList'),
        meta: { title: '设备列表', icon: '', permission: ['/region/device/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/region/statistics',
    component: Layout,
    redirect: '/region/statistics',
    name: 'RegionStatistics',
    alwaysShow: true,
    meta: {
      title: '统计管理',
      icon: 'icon-statistics', // 图标
      permission: ['/region/statistics'], // 权限名称
      sys: '/region'
    },
    children: [
      {
        path: '/region/statistics/personDuration',
        name: 'RegionPersonDuration',
        component: () => import('@/views/statistics/personDuration'),
        meta: { title: '人员所处时长统计', icon: '', permission: ['/region/statistics/personDuration'], keepAlive: true }
      },
      {
        path: '/region/statistics/carDuration',
        name: 'RegionCarDuration',
        component: () => import('@/views/statistics/carDuration'),
        meta: { title: '车辆所处时长统计', icon: '', permission: ['/region/statistics/carDuration'], keepAlive: true }
      }
    ]
  }
]
