diff --git a/src/api/iot/device/device/index.ts b/src/api/iot/device/device/index.ts index cb145bc43..daf6ead1c 100644 --- a/src/api/iot/device/device/index.ts +++ b/src/api/iot/device/device/index.ts @@ -30,17 +30,15 @@ export interface DeviceVO { groupIds?: number[] // 添加分组 ID } -// IoT 设备数据 VO -export interface DeviceDataVO { - deviceId: number // 设备编号 - thinkModelFunctionId: number // 物模型编号 - productKey: string // 产品标识 - deviceName: string // 设备名称 +// IoT 设备属性详细 VO +export interface IotDevicePropertyDetailRespVO { identifier: string // 属性标识符 + value: string // 最新值 + updateTime: Date // 更新时间 name: string // 属性名称 dataType: string // 数据类型 - updateTime: Date // 更新时间 - value: string // 最新值 + dataSpecs: any // 数据定义 + dataSpecsList: any[] // 数据定义列表 } // IoT 设备数据 VO diff --git a/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue b/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue index 3525899c5..1ffa6fcf8 100644 --- a/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue +++ b/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue @@ -50,7 +50,7 @@ -
{{ - item.property?.name || item.name - }}
+
{{ item.name }}
- {{ item.property?.identifier || item.identifier }} + {{ item.identifier }}
- {{ item.property?.dataType || item.dataType }} + {{ item.dataType }}
@@ -107,7 +105,7 @@
更新时间 - {{ dateFormatter(null, null, item.updateTime) }} + {{ item.updateTime ? formatDate(item.updateTime) : '-' }}
@@ -119,9 +117,9 @@ - - - + + + @@ -149,15 +143,15 @@