From e61971d0021bcffa5190e715ec70ea949dd51e39 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 24 Aug 2025 11:34:11 +0800 Subject: [PATCH] =?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 a1bc0f38..4e10138e 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})`,