/* Layout */
import Layout from '@/layout/Layout'
export const wellRouters = [
  {
    path: 'overview',
    component: Layout,
    redirect: '/overview',
    meta: {
      title: '窨井状态总览',
      icon: 'icon-config', // 图标
      permission: ['/overview/wellList']// 权限名称
    },
    children: [
      {
        path: '/overview',
        component: () => import('@/views/overview/overviewAmap'),
        name: 'overview',
        meta: { title: '窨井状态总览', icon: 'icon-config', permission: ['/overview/wellList'] }
      }
    ]
  },
  {
    path: 'alarmManage',
    component: Layout,
    redirect: '/alarmNow',
    name: 'AlarmManage',
    alwaysShow: true,
    meta: {
      title: '告警管理',
      icon: 'icon-config', // 图标
      permission: ['/alarm']// 权限名称
    },
    children: [
      {
        path: '/alarmNow',
        name: 'AlarmNow',
        component: () => import('@/views/alarmManage/listAlarmNow'),
        meta: { title: '当前告警', icon: 'icon-config', permission: ['/alarm/now'] }
      },
      {
        path: '/alarmRecords',
        name: 'AlarmRecords',
        component: () => import('@/views/alarmManage/listAlarmRecords'),
        meta: { title: '告警记录', icon: 'icon-config', keepAlive: true, permission: ['/alarm/list'] }
      },
      {
        path: '/listJob',
        name: 'ListJob',
        component: () => import('@/views/jobManage/listJobs'),
        meta: { title: '告警工单', icon: 'icon-config', keepAlive: true, permission: ['/job/list'] }
      },
      {
        path: '/detailJob/:id(\\d+)',
        name: 'DetailJob',
        component: () => import('@/views/jobManage/detailJob'),
        hidden: true,
        meta: { title: '工单详情', icon: 'icon-config', permission: ['/job/info'] }
      },
      {
        path: '/listRule',
        name: 'ListRule',
        component: () => import('@/views/alarmRule/alarmRule'),
        meta: { title: '告警规则', icon: 'icon-config', permission: ['/alarmRule/list'] }
      },
      {
        path: '/listOvertimeGetJob',
        name: 'ListJobOvertimeGet',
        component: () => import('@/views/jobManage/listJobsOverTimeGet'),
        meta: { title: '超时未接收工单', icon: 'icon-config', keepAlive: true, permission: ['/job/overtimeGetList'] }
      },
      {
        path: '/listOvertimeHandleJob',
        name: 'ListJobOvertimeHandle',
        component: () => import('@/views/jobManage/listJobsOverTimeHandle'),
        meta: { title: '超时未处理工单', icon: 'icon-config', keepAlive: true, permission: ['/job/overtimeHandleList'] }
      }
    ]
  },
  {
    path: 'wellManage',
    component: Layout,
    redirect: '/wellList',
    name: 'WellManage',
    alwaysShow: true,
    meta: {
      title: 'Well',
      icon: 'icon-config', // 图标
      permission: ['/well'], // 权限名称
      keepAlive: true,
      isBack: false
    },
    children: [
      {
        path: '/wellList',
        name: 'WellList',
        component: () => import('@/views/wellManage/listWell'),
        meta: { title: '窨井列表', icon: 'icon-config', keepAlive: true, permission: ['/well/list'] }
      },
      {
        path: '/addWell',
        name: 'AddWell',
        component: () => import('@/views/wellManage/addWell'),
        meta: { title: '新增窨井', icon: 'icon-config', permission: ['/well/add'] }
      },
      {
        path: '/wellLocation',
        name: 'WellLocation',
        component: () => import('@/views/wellManage/postionCorrectWell'),
        meta: { title: '窨井位置纠偏', icon: 'icon-config', permission: ['/well/location'] }
      }
    ]
  },
  {
    path: 'deviceManage',
    component: Layout,
    redirect: '/concenList',
    name: 'DeviceManage',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-config', // 图标
      permission: ['/device']// 权限名称
    },
    children: [
      {
        path: '/concenList',
        name: 'ConcenList',
        component: () => import('@/views/concentrator/listConcentrator'),
        meta: { title: '集中器管理', icon: 'icon-config', permission: ['/concentrator/list'] }
      },
      {
        path: '/deviceList',
        name: 'DeviceList',
        component: () => import('@/views/deviceManage/listDevice'),
        meta: { title: '设备管理', icon: 'icon-config', permission: ['/device/list'] }
      },
      {
        path: '/deviceConfig',
        name: 'DeviceConfig',
        component: () => import('@/views/deviceConfig/deviceConfig'),
        meta: { title: '设备配置', icon: 'icon-config', permission: ['/device/config'] }
      },
      {
        path: '/nbDevice',
        name: 'NbDevice',
        component: () => import('@/views/nbDevice/listNbDevice'),
        meta: { title: 'NB注册', icon: 'icon-config', permission: ['/nbdevice/list'] }
      },
      {
        path: '/deviceType',
        name: 'DeviceType',
        component: () => import('@/views/deviceManage/deviceType/deviceType'),
        meta: { title: '设备类型管理', icon: 'icon-config', permission: ['/device/type'] }
      },
      {
        path: '/deviceModel',
        name: 'DeviceModel',
        component: () => import('@/views/deviceManage/deviceModel/deviceModel'),
        meta: { title: '设备型号管理', icon: 'icon-config', permission: ['/device/model'] }
      },
      {
        path: '/deviceImei',
        name: 'DeviceImei',
        component: () => import('@/views/deviceManage/deviceImei/deviceImei'),
        meta: { title: '设备SIM卡号管理', icon: 'icon-config', permission: ['/device/imei'] }
      }
    ]
  },
  {
    path: 'data',
    component: Layout,
    redirect: '/dataManage',
    name: 'Data',
    alwaysShow: true,
    meta: {
      title: '数据管理',
      icon: 'icon-config', // 图标
      permission: ['/data']// 权限名称
    },
    children: [
      {
        path: '/dataView',
        name: 'DataView',
        component: () => import('@/views/dataView/dataView'),
        meta: { title: '数据概览', icon: 'icon-config', permission: ['/dataView/statics'] }
      },
      {
        path: '/dataManage',
        name: 'DataManage',
        component: () => import('@/views/dataManage/dataManage'),
        meta: { title: '数据列表', icon: 'icon-config', permission: ['/datalist'] }
      },
      {
        path: '/dataAnalyse',
        name: 'DataAnalyse',
        component: () => import('@/views/dataStatics/dataStatics'),
        meta: { title: '数据曲线', icon: 'icon-config', permission: ['/dataAnalyse'] }
      },
      {
        path: '/deviceStatics',
        name: 'DeviceStatics',
        component: () => import('@/views/deviceStatics/deviceStatics'),
        meta: { title: '设备统计', icon: 'icon-config', permission: ['/deviceStatics'] }
      },
      {
        path: '/alarmStatics',
        name: 'AlarmStatics',
        component: () => import('@/views/alarmStatics/alarmStatics'),
        meta: { title: '报警统计', icon: 'icon-config', permission: ['/alarm/statics'] }
      }
    ]
  }
]
