fix:能源告警配置

This commit is contained in:
zhaohy
2024-07-12 17:04:51 +08:00
parent 97c3945848
commit 042fc8f16f
9 changed files with 507 additions and 126 deletions

View File

@@ -52,7 +52,7 @@
NsModal.confirm({
title: '启用状态',
icon: createVNode(ExclamationCircleOutlined),
content: '确定' + (data.record.enableRules === 1 ? '关闭' : '启用') + '?',
content: '确定' + (data.record.enableRules === 1 ? '关闭' : '启用') + '规则?',
onOk: () => {
http
.post(deviceAlarms.addOrUpNewData, {
@@ -60,7 +60,7 @@
enableRules: data.record.enableRules === 1 ? 0 : 1,
})
.then(() => {
NsMessage.success('操作成功');
NsMessage.success(data.record.enableRules === 1 ? '规则已关闭' : '规则已启用');
mainRef.value?.nsTableRef.reload();
});
},
@@ -88,7 +88,7 @@
name: 'RoleTypeAdd',
type: 'primary',
handle: () => {
editConfigureEnergyAlarms.value.toggle(null, configureEnergyAlarmsData.value.va);
editConfigureEnergyAlarms.value.toggle(null, configureEnergyAlarmsData.value);
},
},
{
@@ -148,7 +148,7 @@
},
{
title: '对比类型',
dataIndex: 'valueType',
dataIndex: 'comparisonType',
},
{
title: '告警点位',