From 5e8aad770313223212e15931ff9863887884fba6 Mon Sep 17 00:00:00 2001 From: alwayssuper <12851801+alwayssuper@user.noreply.gitee.com> Date: Fri, 3 Jan 2025 22:33:40 +0800 Subject: [PATCH] feat:DeviceDetailsSimulator --- src/api/iot/thingmodel/index.ts | 5 + .../device/detail/DeviceDetailsSimulator.vue | 218 ++++++++++++++---- 2 files changed, 180 insertions(+), 43 deletions(-) diff --git a/src/api/iot/thingmodel/index.ts b/src/api/iot/thingmodel/index.ts index a5ac9527..3672c64c 100644 --- a/src/api/iot/thingmodel/index.ts +++ b/src/api/iot/thingmodel/index.ts @@ -45,6 +45,11 @@ export const ThingModelApi = { return await request.get({ url: `/iot/thing-model/page`, params }) }, + // 获得产品物模型列表 + getThingModelList: async (params: any) => { + return await request.get({ url: `/iot/thing-model/list`, params }) + }, + // 获得产品物模型 getThingModelListByProductId: async (params: any) => { return await request.get({ diff --git a/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue b/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue index 2ca6a77c..972cb8eb 100644 --- a/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue +++ b/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue @@ -10,16 +10,83 @@ - + - - - - + + + + + + + +
发送 @@ -39,7 +106,12 @@ - +
发送 @@ -51,8 +123,12 @@
- 设备上线 - 设备下线 + 设备上线 + 设备下线
@@ -74,7 +150,12 @@ - +
获取 @@ -107,15 +188,44 @@