From 0ee511e23aa9a2d9e45d5780375b6a0f41e93810 Mon Sep 17 00:00:00 2001 From: zhaohy <1695786511@qq.com> Date: Tue, 13 Aug 2024 14:43:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equipmentAlarm/editeEquipmentAlarm.vue | 50 ++++++++++++++-------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue index 68c421b..ade1d0c 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue @@ -15,20 +15,6 @@ - - - - - - + + + + + + { - if (Number.isInteger(monitorTime) && monitorTime > 0) { + if ( + Number.isInteger(monitorTime) && + monitorTime > 0 && + infoObject.value.monitorTimeUnit + ) { cbfn(); } else { cbfn('请输入正确的监测时长'); @@ -220,7 +234,7 @@ ], createWorkOrder: [{ required: true, message: '请选择是否创建工单', trigger: 'change' }], priority: [{ required: true, message: '请选择优先级', trigger: 'change' }], - monitorTimeUnit: [{ required: true, message: '请选择监测时长单位', trigger: 'change' }], + // monitorTimeUnit: [{ required: true, message: '请选择监测时长单位', trigger: 'change' }], }; //开关 const changeSwitch = () => {