/* 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' }
    },
    {
      path: '/waitForHandle',
      name: 'WaitForHandle',
      component: () => import('@/views/caseManage/waitForHandle'),
      meta: { title: '待办事件', icon: '', permission: '/case/workList' }
    },
    {
      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: '' }
    },
    {
      path: '/reviewList',
      name: 'ReviewList',
      component: () => import('@/views/caseManage/reviewList'),
      meta: { title: '审查事件', icon: '' }
    },
    {
      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' }
    }
  ]
}]
