/* Layout */
import Layout from '../../layout/Layout'
export const commenetRouters = [
  {
    path: '/comment',
    name: 'comment',
    redirect: '/accessDept',
    hidden: true,
    meta: {
      title: '综合评价子系统',
      permission: ['/comment'],
      isSys: true
    }
  },
  {
    path: '/assessPost',
    component: Layout,
    redirect: '/accessSupervisor',
    name: 'AccessPost',
    alwaysShow: true,
    meta: {
      title: '岗位考核',
      permission: ['/accessPost'],
      sys: '/comment'
    },
    children: [
      {
        path: '/assessSupervisor',
        component: () => import('@/views/assessPost/supervisorAssess'),
        name: 'AssessSupervisor',
        meta: { title: '监督员考核', icon: '', permission: '/accessSupervisor' }
      },
      {
        path: '/assessReceiver',
        component: () => import('@/views/assessPost/receiverAssess'),
        name: 'AssessReceiver',
        meta: { title: '受理员评价', icon: '', permission: '/accessReceiver' }
      },
      {
        path: '/assessMonitor',
        component: () => import('@/views/assessPost/monitorAssess'),
        name: 'AssessMonitor',
        meta: { title: '值班长评价', icon: '', permission: '/accessMonitor' }
      },
      {
        path: '/assessDispatcher',
        component: () => import('@/views/assessPost/dispatcherAssess'),
        name: 'AssessDispatcher',
        meta: { title: '派遣员评价', icon: '', permission: '/accessDispatcher' }
      }
    ]
  },
  {
    path: '/assessRegion',
    component: Layout,
    redirect: '/assessArea',
    name: 'AssessRegion',
    alwaysShow: true,
    meta: {
      title: '区域考核',
      permission: ['/accessRegion'],
      sys: '/comment'
    },
    children: [
      {
        path: '/assessArea',
        component: () => import('@/views/assessRegion/assessArea'),
        name: 'AssessArea',
        meta: { title: '行政区域评价', icon: '', permission: '/accessArea' }
      },
      {
        path: '/assessOverview',
        component: () => import('@/views/assessRegion/assessOverview'),
        name: 'AssessOverview',
        meta: { title: '整体概况', icon: '', permission: '/accessOverview' }
      }
    ]
  },
  {
    path: '/accessDept',
    component: Layout,
    redirect: '/accessFuncDept',
    name: 'AccessDept',
    alwaysShow: true,
    meta: {
      title: '部门考核',
      permission: ['/accessDept'],
      sys: '/comment'
    },
    children: [
      {
        path: '/accessFuncDept',
        component: () => import('@/views/deptAccess/deptAccess'),
        name: 'AccessFuncDept',
        meta: { title: '职能单位评价', icon: '', belongSys: '', permission: '/accessFuncDept' }
      }
    ]
  },
  {
    path: '/otherComment',
    component: Layout,
    redirect: '/highFreq',
    name: 'OtherComment',
    alwaysShow: true,
    meta: {
      title: '其他评价',
      permission: ['/otherComment'],
      sys: '/comment'
    },
    children: [
      {
        path: '/highFreq',
        component: () => import('@/views/otherComment/highFreq/highFreq'),
        name: 'HighFreq',
        meta: { title: '高发问题', icon: '', belongSys: '', permission: '/highFreq' }
      },
      {
        path: '/sourceStatis',
        component: () => import('@/views/otherComment/sourceStatis/sourceStatis'),
        name: 'SourceStatis',
        meta: { title: '来源统计', icon: '', belongSys: '', permission: '/sourceStatis' }
      }
    ]
  }
]
