fix:能源告警配置
This commit is contained in:
@@ -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: '告警点位',
|
||||
|
Reference in New Issue
Block a user