/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
export const fenceSysRouters = [
  {
    path: '/fence',
    name: 'Fence',
    redirect: '/fence/alarm',
    hidden: true,
    meta: {
      title: '周界管理子系统',
      permission: ['/fence'],
      isSys: true
    }
  },
  {
    path: '/fence/video',
    component: Layout,
    redirect: '/fence/video/monitor',
    name: 'FenceVideo',
    alwaysShow: true,
    meta: {
      title: '视频管理',
      icon: 'icon-video', // 图标
      permission: ['/fence/video'], // 权限名称
      sys: '/fence'
    },
    children: [
      {
        path: '/fence/video/monitor',
        name: 'FenceVideoMonitor',
        component: () => import('@/views/video/monitor'),
        meta: { title: '实时视频', icon: '', permission: ['/fence/video/monitor'], keepAlive: true }
      },
      {
        path: '/fence/video/history',
        name: 'FenceVideoHistory',
        component: () => import('@/views/video/history'),
        meta: { title: '历史视频', icon: '', permission: ['/fence/video/history'], keepAlive: true }
      }
    ]
  },
  {
    path: '/fence/overview',
    component: OverviewLayout,
    redirect: '/fence/overview/device',
    name: 'FenceOverview',
    alwaysShow: true,
    meta: {
      title: '运行总览',
      icon: '', // 图标
      permission: ['/fence/overview'], // 权限名称
      sys: '/fence'
    },
    children: [
      {
        path: '/fence/overview/device',
        name: 'FenceOverviewDevice',
        component: () => import('@/views/overview/fenceIndex'),
        meta: { title: '周界总览', icon: '', permission: ['/fence/overview/device'], keepAlive: true }
      }
    ]
  },
  {
    path: '/fence/alarm',
    component: Layout,
    redirect: '/fence/alarm',
    name: 'FenceAlarm',
    alwaysShow: true,
    meta: {
      title: '报警管理',
      icon: 'icon-alarm', // 图标
      permission: ['/fence/alarm'], // 权限名称
      sys: '/fence'
    },
    children: [
      {
        path: '/fence/alarm/now',
        name: 'FenceAlarmNow',
        component: () => import('@/views/alarm/alarmNow'),
        meta: { title: '当前报警', icon: '', permission: ['/fence/alarm/now'], keepAlive: true }
      },
      {
        path: '/fence/alarm/list',
        name: 'FenceAlarmList',
        component: () => import('@/views/alarm/alarmList'),
        meta: { title: '报警记录', icon: '', permission: ['/fence/alarm/list'], keepAlive: true }
      },
      {
        path: '/fence/alarm/position',
        name: 'FenceAlarmPostion',
        hidden: true,
        component: () => import('@/views/alarm/alarmPosition'),
        meta: { title: '报警位置', icon: '', permission: ['/fence/alarm/position'], keepAlive: true }
      },
      {
        path: '/fence/alarm/video',
        name: 'FenceAlarmVideo',
        hidden: true,
        component: () => import('@/views/alarm/alarmMonitor'),
        meta: { title: '报警视频', icon: '', permission: ['/fence/alarm/video'], keepAlive: true }
      }
    ]
  },
  {
    path: '/fence/area',
    component: Layout,
    redirect: '/fence/area',
    name: 'FenceArea',
    alwaysShow: true,
    meta: {
      title: '区域管理',
      icon: 'icon-area', // 图标
      permission: ['/fence/area'], // 权限名称
      sys: '/fence'
    },
    children: [
      {
        path: '/fence/area/defenceList',
        name: 'FenceDefenceList',
        component: () => import('@/views/area/defenceList'),
        meta: { title: '防区列表', icon: '', permission: ['/fence/area/defenceList'], keepAlive: true }
      }
    ]
  },
  {
    path: '/fence/device',
    component: Layout,
    redirect: '/fence/device',
    name: 'FenceDevice',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-device', // 图标
      permission: ['/fence/device'], // 权限名称
      sys: '/fence'
    },
    children: [
      {
        path: '/fence/device/list',
        name: 'FenceDeviceList',
        component: () => import('@/views/deviceManage/deviceList'),
        meta: { title: '设备列表', icon: '', permission: ['/fence/device/list'], keepAlive: true }
      }
    ]
  }
]
