diff --git a/src/api/iot/thingmodel/index.ts b/src/api/iot/thingmodel/index.ts index 544227f2e..2ad37caed 100644 --- a/src/api/iot/thingmodel/index.ts +++ b/src/api/iot/thingmodel/index.ts @@ -18,14 +18,6 @@ export interface ThingModelData { service?: ThingModelService // 服务 } -/** - * IoT 模拟设备 - */ -// TODO @super:和 ThingModelSimulatorData 会不会好点 -export interface SimulatorData extends ThingModelData { - simulateValue?: string | number // 用于存储模拟值 TODO @super:字段使用 value 会不会好点 -} - /** * ThingModelProperty 类型 */ diff --git a/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue b/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue index 8d6a369b3..599de70d1 100644 --- a/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue +++ b/src/views/iot/device/device/detail/DeviceDetailsSimulator.vue @@ -6,75 +6,109 @@ - - + + - + - - - - - - - + + + + - + - - + - -
- 发送 +
+ + 设置属性值后,点击「发送属性上报」按钮 + + 发送属性上报
- - + - - - +
@@ -90,39 +124,106 @@ - - - + + - + - +
+ + 设置属性值后,点击「发送属性设置」按钮 + + 发送属性设置 +
- - + - + + + + + + + + + + + + +
@@ -142,119 +243,60 @@ diff --git a/src/views/iot/device/device/detail/index.vue b/src/views/iot/device/device/detail/index.vue index 3fa835e06..3ec756b5c 100644 --- a/src/views/iot/device/device/detail/index.vue +++ b/src/views/iot/device/device/detail/index.vue @@ -26,6 +26,7 @@ v-if="activeTab === 'simulator'" :product="product" :device="device" + :thing-model-list="thingModelList" />