diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index a483484d..c618bb19 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -55,6 +55,14 @@ export interface DeviceHistoryDataVO { data: string // 数据 } +// IoT 设备状态枚举 +export enum DeviceStatusEnum { + INACTIVE = 0, // 未激活 + ONLINE = 1, // 在线 + OFFLINE = 2, // 离线 + DISABLED = 3 // 已禁用 +} + // 设备 API export const DeviceApi = { // 查询设备分页 diff --git a/src/views/iot/device/device/index.vue b/src/views/iot/device/device/index.vue index bcc2df21..f4a3702f 100644 --- a/src/views/iot/device/device/index.vue +++ b/src/views/iot/device/device/index.vue @@ -150,14 +150,45 @@