fix:修改组织id的bug

This commit is contained in:
zhaohy
2024-07-26 10:54:58 +08:00
parent 1790db4595
commit 979c15eda3
4 changed files with 15 additions and 9 deletions

View File

@@ -83,7 +83,7 @@
<!-- 配置设备告警-->
<configureDeviceAlarms v-show="!equipmentAlarm" ref="configureDeviceAlarms" />
</a-tab-pane>
<a-tab-pane key="3" tab="能告警">
<a-tab-pane key="3" tab="能告警">
<ns-view-list-table
v-bind="energyAlarmConfig"
v-show="energyAlarm"
@@ -131,7 +131,7 @@
@click="backenergyAlarm"
>返回</a-button
>
<!-- 新增 编辑 告警 -->
<!-- 新增 编辑 告警 -->
<editeEnergyAlarm ref="editeEnergyAlarm" @editObject="editeEnergyAlarmInfo" />
<!-- 配置能源告警-->
<configureEnergyAlarms v-show="!energyAlarm" ref="configureEnergyAlarms" />
@@ -187,7 +187,7 @@
if (notification === '1') {
methods.push('站内信息');
} else if (notification === '2') {
methods.push('邮件');
methods.push('短信');
}
});
@@ -235,6 +235,7 @@
http
.post(notificationManagementApi.upData, {
id: data.record.id,
orgId: data.record.orgId,
enableNotifications: data.record.enableNotifications === 1 ? 0 : 1,
})
.then(() => {
@@ -249,6 +250,7 @@
http
.post(deviceAlarms.addOrUpNewData, {
id: data.record.id,
orgId: data.record.orgId,
enableRules: data.record.enableRules === 1 ? 0 : 1,
})
.then(() => {
@@ -261,6 +263,7 @@
http
.post(energyAlarms.addOrUpNewData, {
id: data.record.id,
orgId: data.record.orgId,
enableRules: data.record.enableRules === 1 ? 0 : 1,
})
.then(() => {