const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue');
const alarmManagement = {
  path: '/alarmManagement',
  name: 'AlarmManagement',
  meta: { title: '告警管理', icon: 'gaojingguanli', index: 4 },
  redirect: { name: 'alarmManagement' },
  children: [
    {
      path: 'alarmOverview',
      name: 'AlarmOverview',
      meta: { title: '告警总览', hideChildren: true, icon: 'gaojingguanli' },
      component: Base,
      redirect: { name: 'alarmOverviewIndex' },
      children: [
        {
          path: 'index',
          name: 'alarmOverviewIndex',
          component: () => import('/@/view/alarmManagement/alarmOverview/index.vue'),
          meta: {
            title: '告警总览',
            keepAlive: false,
            // backApi: [],
          },
        },
      ],
    },
    {
      path: 'equipmentAlarm',
      name: 'EquipmentAlarm',
      meta: { title: '设备告警', hideChildren: true, icon: 'gaojingguanli' },
      component: Base,
      redirect: { name: 'EquipmentAlarmIndex' },
      children: [
        {
          path: 'index',
          name: 'EquipmentAlarmIndex',
          component: () => import('/@/view/alarmManagement/equipmentAlarm/index.vue'),
          meta: {
            title: '设备告警',
            keepAlive: false,
            // backApi: [],
          },
        },
      ],
    },
    {
      path: 'gatewayAlarm',
      name: 'GatewayAlarm',
      meta: { title: '网关告警', hideChildren: true, icon: 'gaojingguanli' },
      component: Base,
      redirect: { name: 'GatewayAlarmIndex' },
      children: [
        {
          path: 'index',
          name: 'GatewayAlarmIndex',
          component: () => import('/@/view/alarmManagement/gatewayAlarm/index.vue'),
          meta: {
            title: '网关告警',
            keepAlive: false,
            // backApi: [],
          },
        },
      ],
    },
    {
      path: 'EnergyAlarm',
      name: 'EnergyAlarm',
      meta: { title: '能碳告警', hideChildren: true, icon: 'gaojingguanli' },
      component: Base,
      redirect: { name: 'EnergyAlarmIndex' },
      children: [
        {
          path: 'index',
          name: 'EnergyAlarmIndex',
          component: () => import('/@/view/alarmManagement/energyAlarm/index.vue'),
          meta: {
            title: '能碳告警',
            keepAlive: false,
            // backApi: [],
          },
        },
      ],
    },
    {
      path: 'alarmSettings',
      name: 'AlarmSettings',
      meta: { title: '告警设置', hideChildren: true, icon: 'gaojingguanli' },
      component: Base,
      redirect: { name: 'alarmSettingsIndex' },
      children: [
        {
          path: 'index',
          name: 'alarmSettingsIndex',
          component: () => import('/@/view/alarmManagement/alarmSettings/index.vue'),
          meta: {
            title: '告警设置',
            keepAlive: false,
            operates: [
              { title: '设备告警新增', code: 'equipmentAlarmAdd' },
              { title: '设备告警导入', code: 'equipmentAlarmImport' },
              { title: '设备告警导出', code: 'equipmentAlarmExports' },
              { title: '设备告警删除', code: 'equipmentAlarmDel' },
              { title: '设备告警编辑', code: 'equipmentAlarmEdit' },
              { title: '能源告警新增', code: 'energyAlarmAdd' },
              { title: '能源告警导入', code: 'energyAlarmImport' },
              { title: '能源告警导出', code: 'energyAlarmExports' },
              { title: '能源告警删除', code: 'energyAlarmDel' },
              { title: '能源告警编辑', code: 'energyAlarmEdit' },
              { title: '设备告警规则新增', code: 'configureEquipmentAlarmAdd' },
              { title: '设备告警规则导入', code: 'configureEquipmentAlarmImport' },
              { title: '设备告警规则导出', code: 'configureEquipmentAlarmExports' },
              { title: '设备告警规则批量删除', code: 'configureEquipmentAlarmDels' },
              { title: '设备告警规则编辑', code: 'configureEquipmentAlarmEdit' },
              { title: '设备告警规则删除', code: 'configureEquipmentAlarmDel' },
              { title: '能源告警规则新增', code: 'configureEnergyAlarmAdd' },
              { title: '能源告警规则导入', code: 'configureEnergyAlarmImport' },
              { title: '能源告警规则导出', code: 'configureEnergyAlarmExports' },
              { title: '能源告警规则批量删除', code: 'configureEnergyAlarmDels' },
              { title: '能源告警规则编辑', code: 'configureEnergyAlarmEdit' },
              { title: '能源告警规则删除', code: 'configureEnergyAlarmDel' },
            ],
            // backApi: [],
          },
        },
      ],
    },
  ],
};
export default alarmManagement;
