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/receiveInfoFinal/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 addEquipment(data) {
|
// return request({
|
// url: '/dp/dpEquipment',
|
// method: 'post',
|
// data: data
|
// })
|
// }
|
|
// 修改
|
export function updateResData(url, data) {
|
return request({
|
url: `/dp/${url}/updateDate`,
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 删除
|
export function delResData(url, data) {
|
return request({
|
url: `/dp/${url}/deleteBatch`,
|
method: 'post',
|
data: data
|
})
|
}
|