-
- 产品
-
- {{ product ? product.name : '选择产品' }}
-
-
-
- 设备
-
- {{ isEmpty(deviceList) ? '选择设备' : deviceControlConfig.deviceNames.join(',') }}
-
-
-
-
消息类型
+
+
-
-
具体操作
-
+
-
-
-
-
+
-
-
+
+
+
+ {{ getUnitName(parameter.identifier) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
(deviceControlConfig.data = val)"
- />
-
-
-
-
+})
+/** 获得属性单位 */
+const getUnitName = computed(() => (identifier: string) => {
+ const model = thingModels.value?.find((item: any) => item.identifier === identifier)
+ // 属性
+ if (model?.dataSpecs) {
+ return model.dataSpecs.unitName
+ }
+ // TODO puhui999: 先不考虑服务和事件的情况
+ // 服务和事件
+ // if (model?.outputParams) {
+ // return model.dataSpecs.unitName
+ // }
+ return ''
+})
+
diff --git a/src/views/iot/rule/scene/components/action/PropertyValueInput.vue b/src/views/iot/rule/scene/components/action/PropertyValueInput.vue
deleted file mode 100644
index 5b03db09e..000000000
--- a/src/views/iot/rule/scene/components/action/PropertyValueInput.vue
+++ /dev/null
@@ -1,238 +0,0 @@
-
-
-
-
-
-
-