172 lines
3.1 KiB
JavaScript
172 lines
3.1 KiB
JavaScript
|
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
// 分页查询设备字段接口
|
||
|
|
export function GetDeviceColPage(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/deviceColPage',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 分页查询模型字段接口
|
||
|
|
export function GetModelColPage(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/ModelColPage',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增设备接口
|
||
|
|
export function addBatchDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/addBatchDevice',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增模型接口
|
||
|
|
export function addBatchModel(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/addBatchModel',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除设备接口
|
||
|
|
export function deleteBatchDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/deleteBatchDevice',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除模型接口
|
||
|
|
export function deleteBatchModel(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/deviceModel/deleteBatchModel',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询设备类型
|
||
|
|
export function getDeviceType(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/getDeviceType',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询模型类型
|
||
|
|
export function getModelType(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/getModelType',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 分页查询设备模型关联字段接口
|
||
|
|
export function getModelAndDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/page',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 批量删除设备模型关联字段
|
||
|
|
export function deleteBatch(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/deleteBatch',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询当前设备未被使用的模型字段
|
||
|
|
export function selectModel(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/selectModel',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增设备模型关联字段接口
|
||
|
|
export function addBatch(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/ModelAndDevice/add',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询电站下的真实设备
|
||
|
|
export function getRealDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/device/getRealDevice',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增虚拟设备
|
||
|
|
export function Adddevice(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/device/add',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除虚拟设备
|
||
|
|
export function DeletDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: `/business/device/delete`,
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 编辑虚拟设备
|
||
|
|
export function UpdataDevice(data) {
|
||
|
|
return request({
|
||
|
|
url: `/business/device/update`,
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增页面字段数据配置
|
||
|
|
export function ConfigAdd(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/config/add',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询空调
|
||
|
|
export function GetAirConfig(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/config/selectAll',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除页面字段数据配置
|
||
|
|
export function DelAirConfig(data) {
|
||
|
|
return request({
|
||
|
|
url: '/business/config/delete',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|