fix:修改组织id的bug
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user