fix:通知管理

This commit is contained in:
zhaohy
2024-07-17 15:54:35 +08:00
parent 5c902d174d
commit f10045b64d
4 changed files with 132 additions and 113 deletions

View File

@@ -11,6 +11,9 @@
}"
@click="clickSwitch({ enableRules: record.enableRules, record: record })" />
</template>
<template v-if="column.dataIndex === 'valueType'">
{{ record.valueType.label }}
</template>
</template>
</ns-view-list-table>
<!-- 新增or编辑界面 -->

View File

@@ -235,8 +235,8 @@
};
//取值类型
const qzOptions = ref<SelectProps['options']>([
{ value: 1, label: '实时值', code: '1' },
{ value: 2, label: '平均值', code: '2' },
{ value: 1, label: '实时值' },
{ value: 2, label: '平均值' },
]);
//逻辑
const ljOptions = ref<SelectProps['options']>([
@@ -331,6 +331,7 @@
infoObject.value.alarmList = infoObject.value.hxAlarmRuleLogicList || [];
delete infoObject.value.hxAlarmRuleLogicList;
infoObject.value.deviceType = selectDevice;
infoObject.value.valueType = infoObject.value.valueType.value;
infoObject.value.ruleType = infoObject.value.ruleType + '';
}
});