/* Layout */
import Layout from '@/layout/Layout'
export const caseRouters = [{
  path: 'case',
  component: Layout,
  redirect: '/waitForCreate',
  name: 'Case',
  alwaysShow: true,
  meta: {
    title: '事件管理',
    icon: 'icon-config', // 图标
    permission: '/coorBusiness'
  },
  children: [
    {
      path: '/waitForCreate',
      name: 'WaitForCreate',
      component: () => import('@/views/caseManage/waitForCreate'),
      meta: { title: '待录事件', icon: '', permission: '/sound/noCaselist', remind: true, type: 'noCaseNum' }
    },
    {
      path: '/waitForHandle',
      name: 'WaitForHandle',
      component: () => import('@/views/caseManage/waitForHandle'),
      meta: { title: '待办事件', icon: '', permission: '/case/workList', remind: true, type: 'workNum' }
    },
    {
      path: '/completedList',
      name: 'CompletedList',
      component: () => import('@/views/caseManage/completedList'),
      meta: { title: '已办事件', icon: '', permission: '/completed' }
    },
    {
      path: '/searchList',
      name: 'SearchList',
      component: () => import('@/views/caseManage/searchList'),
      meta: { title: '事件查询', icon: '', permission: '/case/queryListPage' }
    },
    {
      path: '/revisitList',
      name: 'RevisitList',
      component: () => import('@/views/caseManage/revisitList'),
      meta: { title: '回访事件', icon: '', permission: '/revisitList' }
    },
    {
      path: '/reviewList',
      name: 'ReviewList',
      component: () => import('@/views/caseManage/reviewList'),
      meta: { title: '审查事件', icon: '', permission: '/reviewList' }
    },
    {
      path: '/delayApplyList',
      name: 'delayApplyList',
      component: () => import('@/views/caseManage/delayApplyList'),
      meta: { title: '延期申请', icon: '', permission: '/delayed' }
    },
    {
      path: '/delayList',
      name: 'delayList',
      component: () => import('@/views/caseManage/delayList'),
      meta: { title: '延期查询', icon: '', permission: '/postponed' }
    },
    {
      path: '/urgeList',
      name: 'urgeList',
      component: () => import('@/views/caseManage/urgeList'),
      meta: { title: '催办查询', icon: '', permission: '/urgeList' }
    },
    {
      path: '/caseManage',
      name: 'caseManage',
      component: () => import('@/views/caseManage/caseManage'),
      meta: { title: '事件管理', icon: '', permission: '/caseManage' }
    },
    {
      path: '/createCase',
      name: 'CreateCase',
      hidden: true,
      component: () => import('@/views/caseManage/createCase'),
      meta: { title: '新建事件', icon: '', permission: '' }
    },
    {
      path: '/caseDetail/:id',
      name: 'caseDetail',
      hidden: true,
      component: () => import('@/views/caseManage/caseDetail'),
      meta: { title: '事件详情', icon: '', permission: '' }
    }
  ]
},
{
  path: 'caseReport',
  component: Layout,
  redirect: '/workReportList',
  name: 'CaseReport',
  alwaysShow: true,
  meta: {
    title: '上报请示管理',
    icon: 'icon-config', // 图标
    permission: '/caseReport'
  },
  children: [
    {
      path: '/workReportList',
      name: 'WorkReportList',
      component: () => import('@/views/caseManage/caseReportManage/workReportList'),
      meta: { title: '待办上报请示', icon: '', permission: '/workReportList' }
    },
    {
      path: '/myReportList',
      name: 'MyReportList',
      component: () => import('@/views/caseManage/caseReportManage/myReportList'),
      meta: { title: '我的上报请示', icon: '', permission: '/myReportList' }
    },
    {
      path: '/searchReportList',
      name: 'SearchReportList',
      component: () => import('@/views/caseManage/caseReportManage/searchReportList'),
      meta: { title: '查询上报请示', icon: '', permission: '/searchReportList' }
    }
  ]
},
{
  path: 'caseSupervise',
  component: Layout,
  redirect: '/workSuperviseList',
  name: 'CaseSupervise',
  alwaysShow: true,
  meta: {
    title: '督办管理',
    icon: 'icon-config', // 图标
    permission: '/caseSupervise'
  },
  children: [
    {
      path: '/workSuperviseList',
      name: 'WorkSuperviseList',
      component: () => import('@/views/superviseManage/waitForSupervise'),
      meta: { title: '待办督办', icon: '', permission: '/workSuperviseList' }
    },
    {
      path: '/checkSuperviseList',
      name: 'CheckSuperviseList',
      component: () => import('@/views/superviseManage/waitCheckSupervise'),
      meta: { title: '审核督办', icon: '', permission: '/checkSuperviseList' }
    },
    {
      path: '/searchSuperviseList',
      name: 'SearchSuperviseList',
      component: () => import('@/views/superviseManage/searchSupervise'),
      meta: { title: '查询督办', icon: '', permission: '/searchSuperviseList' }
    }
  ]
},
{
  path: 'caseMonitor',
  component: Layout,
  redirect: '/workMonitorList',
  name: 'CaseMonitor',
  alwaysShow: true,
  meta: {
    title: '监察管理',
    icon: 'icon-config', // 图标
    permission: '/caseMonitor'
  },
  children: [
    {
      path: '/workMonitorList',
      name: 'WorkMonitorList',
      component: () => import('@/views/monitorManage/waitForMonitor'),
      meta: { title: '待办监察', icon: '', permission: '/workMonitorList' }
    },
    {
      path: '/checkMonitorList',
      name: 'CheckMonitorList',
      component: () => import('@/views/monitorManage/waitCheckMonitor'),
      meta: { title: '审核监察', icon: '', permission: '/checkMonitorList' }
    },
    {
      path: '/searchMonitorList',
      name: 'SearchMonitorList',
      component: () => import('@/views/monitorManage/searchMonitor'),
      meta: { title: '查询监察', icon: '', permission: '/searchMonitorList' }
    }
  ]
}]
