Browse Source

fix:能源告警换枚举

temp
zhaohy 4 months ago
parent
commit
8091bc10cc
  1. 9
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/index.vue
  2. 10
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/energyAlarmConfig.ts

9
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/index.vue

@ -83,6 +83,15 @@
clickSwitch({ type: 3, enableRules: record.enableRules, record: record })
" />
</template>
<template v-if="column.dataIndex === 'monitorFrequencys'">
{{ record.monitorFrequency.label }}
</template>
<template v-if="column.dataIndex === 'rep'">
{{ record.repetitions.label }}
</template>
<template v-if="column.dataIndex === 'prioritys'">
{{ record.priority.label }}
</template>
</template>
</ns-view-list-table>
<a-button

10
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/energyAlarmConfig.ts

@ -12,7 +12,7 @@ const tableKeyMap = [
},
{
title: '优先级',
dataIndex: 'priority',
dataIndex: 'prioritys',
},
{
title: '告警标题',
@ -24,12 +24,11 @@ const tableKeyMap = [
},
{
title: '重复次数',
dataIndex: 'repetitions',
textEllipsis: true,
dataIndex: 'rep',
},
{
title: '监测时长',
dataIndex: 'monitorFrequency',
dataIndex: 'monitorFrequencys',
},
{
title: '是否启用',
@ -99,6 +98,9 @@ export const energyAlarmConfigs = (
name: 'FeedBackDetail',
dynamicParams: ['uuid', 'appealType'],
handle: (data: any) => {
data.monitorFrequency = data.monitorFrequency.value;
data.priority = data.priority.value;
data.repetitions = data.repetitions.value;
editeEnergyAlarm.value.toggle(data);
},
},

Loading…
Cancel
Save