/* Layout */
import Layout from '@/layout/Layout'
export const monitorRouters = [{
  path: 'monitor',
  component: Layout,
  redirect: '/realtimeMonitor',
  name: 'Monitor',
  alwaysShow: true,
  meta: {
    title: '监控管理',
    icon: 'icon-config', // 图标
    permission: '/monitorManage'
  },
  children: [
    {
      path: '/seatMonitor',
      name: 'SeatMonitor',
      component: () => import('@/views/monitor/seatMonitor/seatMonitor'),
      meta: { title: '座席监控', icon: '', permission: '/monitor/seat' }
    },
    {
      path: '/realtimeMonitor',
      name: 'RealtimeMonitor',
      component: () => import('@/views/monitor/realtimeMonitor/realtimeMonitor'),
      meta: { title: '实时监控', icon: '', permission: '/monitor/reatime' }
    }
  ]
},
{
  path: 'statistics',
  component: Layout,
  redirect: '/statistics',
  name: 'Statistics',
  alwaysShow: true,
  meta: {
    title: '事件统计',
    icon: 'icon-config', // 图标
    permission: '/statistics'
  },
  children: [
    {
      path: '/caseStatisticsType',
      name: 'CaseStatisticsType',
      component: () => import('@/views/statistic/caseStatistic/caseTypeStatistic'),
      meta: { title: '事件类型统计', icon: '', permission: '/caseStatistics/type' }
    },
    {
      path: '/caseStatisticsAll',
      name: 'CaseStatisticsAll',
      component: () => import('@/views/statistic/caseStatistic/caseAllStatistic'),
      meta: { title: '事件综合统计', icon: '', permission: '/caseStatistics/all' }
    },
    {
      path: '/caseStatisticsYear',
      name: 'CaseStatisticsYear',
      component: () => import('@/views/statistic/caseStatistic/caseStatisticYear'),
      meta: { title: '事件年统计', icon: '', permission: '/caseStatistics/year' }
    },
    {
      path: '/caseStatisticsMonth',
      name: 'CaseStatisticsMonth',
      component: () => import('@/views/statistic/caseStatistic/caseStatisticMonth'),
      meta: { title: '事件月统计', icon: '', permission: '/caseStatistics/month' }
    }
  ]
}, {
  path: '/callStatistics',
  component: Layout,
  redirect: '/logStatistics',
  name: 'CallStatistics',
  alwaysShow: true,
  meta: {
    title: '话务统计',
    icon: 'icon-config', // 图标
    permission: '/callStatistic'
  },
  children: [
    {
      path: '/logStatistics',
      name: 'LogStatistics',
      component: () => import('@/views/statistic/callStatistic/logStatistic'),
      meta: { title: '签出置忙时间统计', icon: '', permission: '/logstatistic' }
    },
    {
      path: '/callStatisticsAll',
      name: 'CallStatisticsAll',
      component: () => import('@/views/statistic/callStatistic/allStatistic'),
      meta: { title: '话务综合统计', icon: '', permission: '/allCallStatistic' }
    }
  ]
}, {
  path: '/effectiveStatistics',
  component: Layout,
  redirect: '/deptEffectiveStatistics',
  name: 'EffectiveStatistics',
  alwaysShow: true,
  meta: {
    title: '效能监察',
    icon: 'icon-config', // 图标
    permission: '/effectiveStatistics'
  },
  children: [
    {
      path: '/deptEffectiveStatistics',
      name: 'DeptEffectiveStatistics',
      component: () => import('@/views/statistic/deptStatistic/deptStatistic'),
      meta: { title: '部门效能监察', icon: '', permission: '/deptStatistics' }
    },
    {
      path: '/callStatisticsAll',
      name: 'CallStatisticsAll',
      component: () => import('@/views/statistic/callStatistic/allStatistic'),
      meta: { title: '坐席效能监察', icon: '', permission: '/seatsStatistic' }
    }
  ]
}
]
