/* Layout */
import Layout from '@/layout/Layout'
export const caseRouters = [{
  path: 'case',
  component: Layout,
  redirect: '/waitForCreate',
  name: 'Case',
  alwaysShow: true,
  meta: {
    title: '事件管理',
    icon: 'icon-config' // 图标
  },
  children: [
    {
      path: '/waitForCreate',
      name: 'WaitForCreate',
      component: () => import('@/views/caseManage/waitForCreate'),
      meta: { title: '待录事件', icon: '' }
    },
    {
      path: '/waitForHandle',
      name: 'WaitForHandle',
      component: () => import('@/views/caseManage/waitForHandle'),
      meta: { title: '待办事件', icon: '' }
    },
    {
      path: '/completedList',
      name: 'CompletedList',
      component: () => import('@/views/caseManage/completedList'),
      meta: { title: '已办事件', icon: '' }
    },
    {
      path: '/searchList',
      name: 'SearchList',
      component: () => import('@/views/caseManage/searchList'),
      meta: { title: '事件查询', icon: '' }
    },
    {
      path: '/createCase',
      name: 'CreateCase',
      hidden: true,
      component: () => import('@/views/caseManage/createCase'),
      meta: { title: '新建事件', icon: '' }
    },
    {
      path: '/caseDetail/:id',
      name: 'caseDetail',
      hidden: true,
      component: () => import('@/views/caseManage/caseDetail'),
      meta: { title: '事件详情', icon: '' }
    }
  ]
}]
