From 0961df37dd4dbfeb437128242670646c9c60fcd3 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 25 Mar 2025 17:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91IoT:=20=E5=9C=BA=E6=99=AF=E8=81=94=E5=8A=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AE=9A=E6=97=B6=E8=A7=A6=E5=8F=91=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/rule/scene/RuleSceneForm.vue | 5 +- .../rule/scene/components/DeviceListener.vue | 141 +++++++++++------- 2 files changed, 86 insertions(+), 60 deletions(-) diff --git a/src/views/iot/rule/scene/RuleSceneForm.vue b/src/views/iot/rule/scene/RuleSceneForm.vue index e18834249..034c52549 100644 --- a/src/views/iot/rule/scene/RuleSceneForm.vue +++ b/src/views/iot/rule/scene/RuleSceneForm.vue @@ -44,8 +44,9 @@ - - 添加触发器 + + 添加触发器 + 执行动作配置 diff --git a/src/views/iot/rule/scene/components/DeviceListener.vue b/src/views/iot/rule/scene/components/DeviceListener.vue index 5a3feb63b..1c5d32f45 100644 --- a/src/views/iot/rule/scene/components/DeviceListener.vue +++ b/src/views/iot/rule/scene/components/DeviceListener.vue @@ -17,13 +17,19 @@ /> -
+
产品 {{ product ? product.name : '选择产品' }}
-
+
设备 {{ isEmpty(deviceList) ? '选择设备' : triggerConfig.deviceNames.join(',') }} @@ -36,71 +42,89 @@
- -
-
- - - - - -
-
- - + + + +
+ CRON 表达式 +
- 添加触发条件 + + + 添加触发条件 +
@@ -126,6 +150,7 @@ import { ThingModelApi } from '@/api/iot/thingmodel' import { IotDeviceMessageIdentifierEnum, IotDeviceMessageTypeEnum, + IotRuleSceneTriggerTypeEnum, TriggerCondition, TriggerConditionParameter, TriggerConfig