// 报警管理部分路由
/* Layout */
import Layout from '@/layout/Layout'

export const alarmRouters = [
  {
    path: 'alarmManage',
    component: Layout,
    redirect: '/collectAlarm',
    name: 'AlarmManage',
    meta: {
      title: '报警管理',
      icon: 'icon-config', // 图标
      permission: ['/alarmManage']// 权限名称
    },
    children: [
      {
        path: '/alarmNow',
        name: 'AlarmNow',
        component: () => import('@/views/alarmManage/listAlarmNow'),
        meta: { title: '当前报警', icon: 'function', permission: ['/alarmNow'], keepAlive: true }
      },
      {
        path: '/alarmRecord',
        name: 'AlarmRecord',
        component: () => import('@/views/alarmManage/listAlarm'),
        meta: { title: '报警记录', icon: 'function', permission: ['/alarmRecord'], keepAlive: true }
      },
      {
        path: '/ruleAlarm',
        name: 'RuleAlarm',
        component: () => import('@/views/alarmManage/alarmRule'),
        meta: { title: '报警规则', icon: '', permission: ['/ruleAlarm'], keepAlive: true }
      }
    ]
  }
]
