import request from '@/utils/request'
|
|
// 查询泊位--设备分页列表
|
export function listEquipment(query) {
|
return request({
|
url: '/dp/dpEquipment/pageList',
|
method: 'get',
|
params: query
|
})
|
}
|
// 查询泊位--设备列表
|
export function equList(beId) {
|
return request({
|
url: '/dp/dpEquipment/list?beId=' + beId,
|
method: 'get'
|
})
|
}
|
|
// 设备列表--树结构
|
export function equTree() {
|
return request({
|
url: '/dp/dpEquipment/getListByWhId',
|
method: 'get'
|
})
|
}
|
|
// 设备--数据分页获取列表
|
export function dataPageList(data) {
|
return request({
|
url: '/dp/dpEquipment/getPageListByIdRuoyi',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 设备--数据列表
|
export function dataList(data) {
|
return request({
|
url: '/dp/dpEquipment/getDataById',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 查询泊位--设备详细
|
export function getEquipment(id) {
|
return request({
|
url: '/dp/dpEquipment/' + id,
|
method: 'get'
|
})
|
}
|
// 查询节点所属类型
|
export function getEquTypeByid(id) {
|
return request({
|
url: '/dp/receiveInfoFinal/getUrl?equId=' + id,
|
method: 'get'
|
})
|
}
|
// 数据清洗-新增数据
|
export function addEquRes(url, data) {
|
return request({
|
url: `/dp/${url}/saveBatch`,
|
method: 'post',
|
data: data
|
})
|
}
|
// 新增泊位--设备
|
export function addEquipment(data) {
|
return request({
|
url: '/dp/dpEquipment',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改泊位--设备
|
export function updateEquipment(data) {
|
return request({
|
url: '/dp/dpEquipment',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除泊位--设备
|
export function delEquipment(ID) {
|
return request({
|
url: '/dp/dpEquipment/' + ID,
|
method: 'delete'
|
})
|
}
|