【功能新增】IoT:设备管理界面增加设备分组选择功能
This commit is contained in:
@ -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` })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,6 +28,7 @@ export interface DeviceVO {
|
||||
areaId: number // 地区编码
|
||||
address: string // 设备详细地址
|
||||
serialNumber: string // 设备序列号
|
||||
groupIds?: number[] // 添加分组 ID
|
||||
}
|
||||
|
||||
export interface DeviceUpdateStatusVO {
|
||||
|
||||
Reference in New Issue
Block a user