【功能新增】IoT:设备管理界面增加设备分组选择功能

This commit is contained in:
YunaiV
2024-12-14 18:41:35 +08:00
parent 30b19c9100
commit 14fe6c559f
5 changed files with 70 additions and 26 deletions

View File

@ -6,6 +6,7 @@ export interface DeviceGroupVO {
name: string // 分组名字
status: number // 分组状态
description: string // 分组描述
deviceCount?: number // 设备数量
}
// IoT 设备分组 API
@ -33,5 +34,10 @@ export const DeviceGroupApi = {
// 删除IoT 设备分组
deleteDeviceGroup: async (id: number) => {
return await request.delete({ url: `/iot/device-group/delete?id=` + id })
},
// 获取设备分组的精简信息列表
getSimpleDeviceGroupList: async () => {
return await request.get({ url: `/iot/device-group/simple-list` })
}
}
}

View File

@ -28,6 +28,7 @@ export interface DeviceVO {
areaId: number // 地区编码
address: string // 设备详细地址
serialNumber: string // 设备序列号
groupIds?: number[] // 添加分组 ID
}
export interface DeviceUpdateStatusVO {