fix:能源告警换枚举
This commit is contained in:
@@ -83,6 +83,15 @@
|
|||||||
clickSwitch({ type: 3, enableRules: record.enableRules, record: record })
|
clickSwitch({ type: 3, enableRules: record.enableRules, record: record })
|
||||||
" />
|
" />
|
||||||
</template>
|
</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>
|
</template>
|
||||||
</ns-view-list-table>
|
</ns-view-list-table>
|
||||||
<a-button
|
<a-button
|
||||||
|
@@ -12,7 +12,7 @@ const tableKeyMap = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '优先级',
|
title: '优先级',
|
||||||
dataIndex: 'priority',
|
dataIndex: 'prioritys',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警标题',
|
title: '告警标题',
|
||||||
@@ -24,12 +24,11 @@ const tableKeyMap = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '重复次数',
|
title: '重复次数',
|
||||||
dataIndex: 'repetitions',
|
dataIndex: 'rep',
|
||||||
textEllipsis: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '监测时长',
|
title: '监测时长',
|
||||||
dataIndex: 'monitorFrequency',
|
dataIndex: 'monitorFrequencys',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否启用',
|
title: '是否启用',
|
||||||
@@ -99,6 +98,9 @@ export const energyAlarmConfigs = (
|
|||||||
name: 'FeedBackDetail',
|
name: 'FeedBackDetail',
|
||||||
dynamicParams: ['uuid', 'appealType'],
|
dynamicParams: ['uuid', 'appealType'],
|
||||||
handle: (data: any) => {
|
handle: (data: any) => {
|
||||||
|
data.monitorFrequency = data.monitorFrequency.value;
|
||||||
|
data.priority = data.priority.value;
|
||||||
|
data.repetitions = data.repetitions.value;
|
||||||
editeEnergyAlarm.value.toggle(data);
|
editeEnergyAlarm.value.toggle(data);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user