From e61971d0021bcffa5190e715ec70ea949dd51e39 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 24 Aug 2025 11:34:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=80=90IoT=20=E7=89=A9=E8=81=94?= =?UTF-8?q?=E7=BD=91=E3=80=91=E4=BF=AE=E5=A4=8D=E6=9E=9A=E4=B8=BE=E5=BC=95?= =?UTF-8?q?=E5=85=A5=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B5=81=E8=BD=AC=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/rule/data/rule/components/SourceConfigForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/iot/rule/data/rule/components/SourceConfigForm.vue b/src/views/iot/rule/data/rule/components/SourceConfigForm.vue index a1bc0f384..4e10138e1 100644 --- a/src/views/iot/rule/data/rule/components/SourceConfigForm.vue +++ b/src/views/iot/rule/data/rule/components/SourceConfigForm.vue @@ -108,7 +108,7 @@ import { ProductApi } from '@/api/iot/product/product' import { DeviceApi } from '@/api/iot/device/device' import { ThingModelApi } from '@/api/iot/thingmodel' -import { IotDeviceMessageMethodEnum, IotThingModelTypeEnum } from '@/views/iot/utils/constants' +import { IotDeviceMessageMethodEnum, IoTThingModelTypeEnum } from '@/views/iot/utils/constants' const formData = ref([]) const productList = ref([]) // 产品列表 @@ -149,9 +149,9 @@ const getThingModelOptions = (row: any) => { const thingModels: any[] = thingModelCache.value.get(row.productId) || [] let filteredModels: any[] = [] if (row.method === IotDeviceMessageMethodEnum.EVENT_POST.method) { - filteredModels = thingModels.filter((item: any) => item.type === IotThingModelTypeEnum.EVENT) + filteredModels = thingModels.filter((item: any) => item.type === IoTThingModelTypeEnum.EVENT) } else if (row.method === IotDeviceMessageMethodEnum.PROPERTY_POST.method) { - filteredModels = thingModels.filter((item: any) => item.type === IotThingModelTypeEnum.PROPERTY) + filteredModels = thingModels.filter((item: any) => item.type === IoTThingModelTypeEnum.PROPERTY) } return filteredModels.map((item: any) => ({ label: `${item.name} (${item.identifier})`, -- Gitee From 30bbda805b1256740000e348023f3efb82938fd0 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 24 Aug 2025 11:49:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?perf:=20=E3=80=90IoT=20=E7=89=A9=E8=81=94?= =?UTF-8?q?=E7=BD=91=E3=80=91=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/device/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/iot/device/device/index.vue b/src/views/iot/device/device/index.vue index 9e9721229..56139be9a 100644 --- a/src/views/iot/device/device/index.vue +++ b/src/views/iot/device/device/index.vue @@ -212,7 +212,7 @@ - {{ item.deviceName || '-' }} + {{ item.nickname || item.deviceName }} -- Gitee