Browse Source

fix:修改告警设置问题

temp
zhaohy 2 months ago
parent
commit
6b03be0119
  1. 9
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue
  2. 9
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue

9
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue

@ -140,14 +140,14 @@
<img style="width: 17px" src="../../../../../src/icon/del.png" />
</div>
</div>
<div
<!-- <div
v-if="
infoObject.alarmList[index - 1]?.num === '' ||
infoObject.alarmList[index - 1]?.logic === null
"
style="width: 100%; color: #ff4d4f; text-align: center; margin-bottom: 5px">
请选择正确的逻辑{{ index }} 输入正确的数值{{ index }}
</div>
</div> -->
</template>
<div
v-if="infoObject.alarmList?.length < 2"
@ -417,6 +417,11 @@
const getBoolean = () => {
for (const item of infoObject.value.alarmList) {
if (item.logic === null || item.num === '') {
NsMessage.error('请选择逻辑和数值');
return false;
}
if (typeof item.num !== 'number') {
NsMessage.error('请输入正确数值');
return false;
}
}

9
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue

@ -151,14 +151,14 @@
<img style="width: 17px" src="../../../../../src/icon/del.png" />
</div>
</div>
<div
<!-- <div
v-if="
infoObject.alarmList[index - 1]?.num === '' ||
infoObject.alarmList[index - 1]?.logic === null
"
style="width: 100%; color: #ff4d4f; text-align: center; margin-bottom: 5px">
请选择正确的逻辑{{ index }} 输入正确的数值{{ index }}
</div>
</div> -->
</template>
<div
v-if="infoObject?.alarmList?.length < 2"
@ -432,6 +432,11 @@
const getBoolean = () => {
for (const item of infoObject.value.alarmList) {
if (item.logic === null || item.num === '') {
NsMessage.error('请选择逻辑和数值');
return false;
}
if (typeof item.num !== 'number') {
NsMessage.error('请输入正确数值');
return false;
}
}

Loading…
Cancel
Save