diff --git a/src/views/iot/thingmodel/ThingModelEvent.vue b/src/views/iot/thingmodel/ThingModelEvent.vue
index 041937e90..2704f4b53 100644
--- a/src/views/iot/thingmodel/ThingModelEvent.vue
+++ b/src/views/iot/thingmodel/ThingModelEvent.vue
@@ -6,15 +6,12 @@
prop="event.type"
>
-
-
- {{ IoTThingModelEventTypeEnum.INFO.label }}
-
-
- {{ IoTThingModelEventTypeEnum.ALERT.label }}
-
-
- {{ IoTThingModelEventTypeEnum.ERROR.label }}
+
+ {{ eventType.label }}
diff --git a/src/views/iot/thingmodel/ThingModelForm.vue b/src/views/iot/thingmodel/ThingModelForm.vue
index 088391c76..d9ee14540 100644
--- a/src/views/iot/thingmodel/ThingModelForm.vue
+++ b/src/views/iot/thingmodel/ThingModelForm.vue
@@ -160,9 +160,8 @@ const submitForm = async () => {
}
}
-/** 填写额外的属性 */
+/** 填写额外的属性(处理不同类型的情况) */
const fillExtraAttributes = (data: any) => {
- // 处理不同类型的情况
// 属性
if (data.type === IoTThingModelTypeEnum.PROPERTY) {
removeDataSpecs(data.property)
@@ -191,6 +190,7 @@ const fillExtraAttributes = (data: any) => {
delete data.service
}
}
+
/** 处理 dataSpecs 为空的情况 */
const removeDataSpecs = (val: any) => {
if (isEmpty(val.dataSpecs)) {
diff --git a/src/views/iot/thingmodel/ThingModelInputOutputParam.vue b/src/views/iot/thingmodel/ThingModelInputOutputParam.vue
index 2dd6740cb..04bc95093 100644
--- a/src/views/iot/thingmodel/ThingModelInputOutputParam.vue
+++ b/src/views/iot/thingmodel/ThingModelInputOutputParam.vue
@@ -15,7 +15,7 @@
+新增参数
-