From cfb1f8401e7dd099c287e0eb1cfa8afa884499a0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 18 May 2026 12:27:37 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=88iot=EF=BC=89=EF=BC=9A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20IoT=20=E8=AF=B7=E6=B1=82=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=EF=BC=88thingmodel=20=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BC=95=E5=85=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/iot/thingmodel/index.vue | 6 +++--- .../iot/thingmodel/modules/components/data-definition.vue | 4 ++-- .../views/iot/thingmodel/modules/data-specs/number.vue | 4 ++-- apps/web-antd/src/views/iot/thingmodel/modules/form.vue | 8 ++++---- .../src/views/iot/thingmodel/modules/property.vue | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/web-antd/src/views/iot/thingmodel/index.vue b/apps/web-antd/src/views/iot/thingmodel/index.vue index ada97aeb9..dbb75eb04 100644 --- a/apps/web-antd/src/views/iot/thingmodel/index.vue +++ b/apps/web-antd/src/views/iot/thingmodel/index.vue @@ -2,7 +2,7 @@ import type { Ref } from 'vue'; import type { IotProductApi } from '#/api/iot/product/product'; -import type { ThingModelData } from '#/api/iot/thingmodel'; +import type { ThingModelApi } from '#/api/iot/thingmodel'; import { computed, inject } from 'vue'; @@ -46,12 +46,12 @@ function handleCreate() { } /** 编辑物模型 */ -function handleEdit(row: ThingModelData) { +function handleEdit(row: ThingModelApi.ThingModel) { formModalApi.setData({ id: row.id }).open(); } /** 删除物模型 */ -async function handleDelete(row: ThingModelData) { +async function handleDelete(row: ThingModelApi.ThingModel) { const hideLoading = message.loading({ content: $t('ui.actionMessage.deleting', [row.name]), duration: 0, diff --git a/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue b/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue index 3f5aaf1dd..1d0b5c1ea 100644 --- a/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue +++ b/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue @@ -1,5 +1,5 @@