mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 03:20:06 +08:00
commit
This commit is contained in:
88
jsowell-ui/src/api/pile/basic.js
Normal file
88
jsowell-ui/src/api/pile/basic.js
Normal file
@@ -0,0 +1,88 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
54
jsowell-ui/src/api/pile/connector.js
Normal file
54
jsowell-ui/src/api/pile/connector.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充电桩枪口信息列表
|
||||
export function listConnector(query) {
|
||||
return request({
|
||||
url: '/pile/connector/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充电桩枪口信息详细
|
||||
export function getConnector(id) {
|
||||
return request({
|
||||
url: '/pile/connector/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充电桩枪口信息
|
||||
export function addConnector(data) {
|
||||
return request({
|
||||
url: '/pile/connector',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充电桩枪口信息
|
||||
export function updateConnector(data) {
|
||||
return request({
|
||||
url: '/pile/connector',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充电桩枪口信息
|
||||
export function delConnector(id) {
|
||||
return request({
|
||||
url: '/pile/connector/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 通过入参查询接口列表
|
||||
export function queryConnectorListByParams(data) {
|
||||
console.log("通过入参查询接口列表", data);
|
||||
return request({
|
||||
url: '/pile/connector/getConnectorInfoListByParams',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
53
jsowell-ui/src/api/pile/merchant.js
Normal file
53
jsowell-ui/src/api/pile/merchant.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充电桩运营商信息列表
|
||||
export function listMerchant(query) {
|
||||
return request({
|
||||
url: '/pile/merchant/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充电桩运营商信息详细
|
||||
export function getMerchant(id) {
|
||||
return request({
|
||||
url: '/pile/merchant/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充电桩运营商信息
|
||||
export function addMerchant(data) {
|
||||
return request({
|
||||
url: '/pile/merchant',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充电桩运营商信息
|
||||
export function updateMerchant(data) {
|
||||
return request({
|
||||
url: '/pile/merchant',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充电桩运营商信息
|
||||
export function delMerchant(id) {
|
||||
return request({
|
||||
url: '/pile/merchant/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取运营商列表 不分页
|
||||
export function getMerchantList(query) {
|
||||
return request({
|
||||
url: '/pile/merchant/getMerchantList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
44
jsowell-ui/src/api/pile/model.js
Normal file
44
jsowell-ui/src/api/pile/model.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充电桩型号信息列表
|
||||
export function listModel(query) {
|
||||
return request({
|
||||
url: '/pile/model/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充电桩型号信息详细
|
||||
export function getModel(id) {
|
||||
return request({
|
||||
url: '/pile/model/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充电桩型号信息
|
||||
export function addModel(data) {
|
||||
return request({
|
||||
url: '/pile/model',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充电桩型号信息
|
||||
export function updateModel(data) {
|
||||
return request({
|
||||
url: '/pile/model',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充电桩型号信息
|
||||
export function delModel(id) {
|
||||
return request({
|
||||
url: '/pile/model/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
61
jsowell-ui/src/api/pile/sim.js
Normal file
61
jsowell-ui/src/api/pile/sim.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充电桩SIM卡信息列表
|
||||
export function listSim(query) {
|
||||
return request({
|
||||
url: '/pile/sim/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 后管查询充电桩SIM卡信息列表
|
||||
export function getSimInfo(data) {
|
||||
return request({
|
||||
url: '/pile/sim/getSimInfo',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充电桩SIM卡信息详细
|
||||
export function getSim(id) {
|
||||
return request({
|
||||
url: '/pile/sim/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充电桩SIM卡信息
|
||||
export function addSim(data) {
|
||||
return request({
|
||||
url: '/pile/sim',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充电桩SIM卡信息
|
||||
export function updateSim(data) {
|
||||
return request({
|
||||
url: '/pile/sim',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充电桩SIM卡信息
|
||||
export function delSim(id) {
|
||||
return request({
|
||||
url: '/pile/sim/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function simRenew(data) {
|
||||
return request({
|
||||
url: '/pile/sim/simRenew',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
74
jsowell-ui/src/api/pile/station.js
Normal file
74
jsowell-ui/src/api/pile/station.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from "@/utils/request";
|
||||
import {parseTime} from "@/utils/common";
|
||||
|
||||
// 查询充电站信息列表
|
||||
export function listStation(query) {
|
||||
return request({
|
||||
url: "/pile/station/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询充电站信息详细
|
||||
export function getStation(id) {
|
||||
return request({
|
||||
url: "/pile/station/" + id,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 查询充电站信息详细
|
||||
export function getStationInfo(stationId) {
|
||||
return request({
|
||||
url: "/pile/station/getStationInfo/" + stationId,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 根据运营商id 查询充电站列表
|
||||
export function getStationListByMerchantId(merchantId) {
|
||||
return request({
|
||||
url: "/pile/station/selectStationListByMerchantId",
|
||||
method: "post",
|
||||
data: {
|
||||
merchantId: merchantId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 新增充电站信息
|
||||
export function addStation(data) {
|
||||
return request({
|
||||
url: "/pile/station",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改充电站信息
|
||||
export function updateStation(data) {
|
||||
console.log("修改充电站信息data", data)
|
||||
return request({
|
||||
url: "/pile/station",
|
||||
method: "put",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除充电站信息
|
||||
export function delStation(id) {
|
||||
return request({
|
||||
url: "/pile/station/" + id,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
// 快速建站接口
|
||||
export function fastCreateStation(data) {
|
||||
return request({
|
||||
url: "/pile/station/fastCreateStation",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user