/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
export const keySysRouters = [
  {
    path: '/key',
    name: 'Key',
    redirect: '/key/alarm',
    hidden: true,
    meta: {
      title: '重点区域管理子系统',
      permission: ['/key'],
      isSys: true
    }
  },
  {
    path: '/key/video',
    component: Layout,
    redirect: '/key/video/monitor',
    name: 'KeyVideo',
    alwaysShow: true,
    meta: {
      title: '视频管理',
      icon: 'icon-video', // 图标
      permission: ['/key/video'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/video/monitor',
        name: 'KeyVideoMonitor',
        component: () => import('@/views/video/monitor'),
        meta: { title: '实时视频', icon: '', permission: ['/key/video/monitor'], keepAlive: true }
      },
      {
        path: '/key/video/history',
        name: 'KeyVideoHistory',
        component: () => import('@/views/video/history'),
        meta: { title: '历史视频', icon: '', permission: ['/key/video/history'], keepAlive: true }
      }
    ]
  },
  {
    path: '/key/overview',
    component: OverviewLayout,
    redirect: '/key/overview/device',
    name: 'KeyOverview',
    alwaysShow: true,
    meta: {
      title: '运行总览',
      icon: '', // 图标
      permission: ['/key/overview'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/overview/device',
        name: 'KeyOverviewDevice',
        component: () => import('@/views/overview/keyIndex'),
        meta: { title: '重点区域总览', icon: '', permission: ['/key/overview/device'], keepAlive: true }
      }
    ]
  },
  {
    path: '/key/alarm',
    component: Layout,
    redirect: '/key/alarm/now',
    name: 'KeyAlarm',
    alwaysShow: true,
    meta: {
      title: '报警管理',
      icon: 'icon-alarm', // 图标
      permission: ['/key/alarm'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/alarm/now',
        name: 'KeyAlarmNow',
        component: () => import('@/views/alarm/alarmNow'),
        meta: { title: '当前报警', icon: '', permission: ['/key/alarm/now'], keepAlive: true }
      },
      {
        path: '/key/alarm/list',
        name: 'KeyAlarmList',
        component: () => import('@/views/alarm/alarmList'),
        meta: { title: '报警记录', icon: '', permission: ['/key/alarm/list'], keepAlive: true }
      },
      {
        path: '/key/alarm/position',
        name: 'KeyAlarmPostion',
        hidden: true,
        component: () => import('@/views/alarm/alarmPosition'),
        meta: { title: '报警位置', icon: '', permission: ['/key/alarm/position'], keepAlive: true }
      },
      {
        path: '/key/alarm/video',
        name: 'KeyAlarmVideo',
        hidden: true,
        component: () => import('@/views/alarm/alarmMonitor'),
        meta: { title: '报警视频', icon: '', permission: ['/key/alarm/video'], keepAlive: true }
      }
    ]
  },
  {
    path: '/key/staff',
    component: Layout,
    redirect: '/key/staff',
    name: 'KeyStaff',
    alwaysShow: true,
    meta: {
      title: '人员管理',
      icon: 'icon-person', // 图标
      permission: ['/key/staff'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/staff/add',
        name: 'KeyStaffAdd',
        component: () => import('@/views/staff/staffAdd'),
        meta: { title: '人员登记', icon: '', permission: ['/key/staff/add'], keepAlive: true }
      },
      {
        path: '/key/staff/list',
        name: 'KeyStaffList',
        component: () => import('@/views/staff/staffList'),
        meta: { title: '人员列表', icon: '', permission: ['/key/staff/list'], keepAlive: true }
      },
      {
        path: '/key/staff/edit',
        name: 'KeyStaffEdit',
        component: () => import('@/views/staff/staffEdit'),
        hidden: true,
        meta: { title: '人员编辑', icon: '', permission: ['/key/staff/edit'], keepAlive: true }
      }
    ]
  },
  {
    path: '/key/area',
    component: Layout,
    redirect: '/key/area',
    name: 'KeyArea',
    alwaysShow: true,
    meta: {
      title: '区域管理',
      icon: 'icon-area', // 图标
      permission: ['/key/area'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/area/list',
        name: 'KeyAreaList',
        component: () => import('@/views/area/areaList'),
        meta: { title: '区域列表', icon: '', permission: ['/key/area/list'], keepAlive: true }
      }
    ]
  },
  {
    path: '/key/device',
    component: Layout,
    redirect: '/key/device',
    name: 'KeyDevice',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-device', // 图标
      permission: ['/key/device'], // 权限名称
      sys: '/key'
    },
    children: [
      {
        path: '/key/device/list',
        name: 'KeyDeviceList',
        component: () => import('@/views/deviceManage/deviceList'),
        meta: { title: '设备列表', icon: '', permission: ['/key/device/list'], keepAlive: true }
      }
    ]
  }
]
