mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 19:40:07 +08:00
132 lines
2.6 KiB
JavaScript
132 lines
2.6 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询设备管理列表
|
|
export function listBasic(query) {
|
|
return request({
|
|
url: '/pile/basic/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询设备管理详细
|
|
export function getBasic(id) {
|
|
return request({
|
|
url: '/pile/basic/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增设备管理
|
|
export function addBasic(data) {
|
|
return request({
|
|
url: '/pile/basic',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function batchAddBasic(data) {
|
|
console.log("批量新增接口", data);
|
|
return request({
|
|
url: '/pile/basic/batchAdd',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改设备管理
|
|
export function updateBasic(data) {
|
|
return request({
|
|
url: '/pile/basic',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除设备管理
|
|
export function delBasic(id) {
|
|
return request({
|
|
url: '/pile/basic/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 查询设备管理详细
|
|
export function getPileDetailById(data) {
|
|
return request({
|
|
url: '/pile/basic/getPileDetailById',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 通过充电站id查询所有充电桩列表
|
|
export function queryPileListByStationId(stationId) {
|
|
return request({
|
|
url: '/pile/basic/queryPileListByStationId/' + stationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 批量更新充电桩
|
|
export function batchUpdatePileList(data) {
|
|
return request({
|
|
url: '/pile/basic/batchUpdatePileList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询充电桩通讯日志
|
|
export function getPileFeedList(data) {
|
|
return request({
|
|
url: '/pile/basic/getPileFeedList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改桩别名
|
|
export function updatePileName(data) {
|
|
return request({
|
|
url: '/pile/basic/updatePileName',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询桩对应的第三方平台桩编号列表
|
|
export function getThirdPartySnRelation(data) {
|
|
return request({
|
|
url: '/pile/basic/getThirdPartySnRelation',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改第三方平台对应编号
|
|
export function updateThirdPartySnRelation(data) {
|
|
return request({
|
|
url: '/pile/basic/updateThirdPartySnRelation',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询该桩绑定用户信息(查询个人桩)
|
|
export function getPersonalPileList(data) {
|
|
return request({
|
|
url: '/pile/basic/getPersonalPileList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function generatePileSecret() {
|
|
return request({
|
|
url: '/pile/basic/getPileSecretStr',
|
|
method: 'get'
|
|
})
|
|
}
|