import axios from 'axios'
|
|
export default {
|
/**
|
* 查询所有电源信息记录
|
*/
|
searchAll(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getAll',
|
data: null,
|
});
|
},
|
/**
|
* 删选查询电源信息记录
|
* 参数 json: {"stationId":42000142,"stationName1":"湖北省","stationName2":"武汉市","stationName5":"东西湖区","pageInfo":{"pageNum":1,"pageSize":2}}
|
*/
|
searchData(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getPowerDevicesPage',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 添加电源信息
|
* @param {[Array]} data 需要添加的电源信息列表
|
*/
|
addPower(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_add',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 编辑电源信息
|
* 参数 powerDeviceIp
|
powerDeviceName
|
protocolName
|
powerProducer
|
powerProductDate
|
powerInUseDate
|
powerDeviceId
|
*/
|
updatePower(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_update',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 删除电源信息
|
* 参数 powerDeviceId
|
*/
|
deletePower(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_delete',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询某个电源的详细信息
|
* @param {[Object]} data {powerDeviceId:123123}
|
*/
|
getInfoById(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getInfoById',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询电源的ACDC信息
|
* @param id 电源的id
|
* @returns {AxiosPromise}
|
*/
|
getACDCData(id) {
|
return axios({
|
method: 'post',
|
url: 'PowerACDCDataAction_power_getDataByDevId',
|
data: 'json=' + JSON.stringify({
|
powerDeviceId: id
|
}),
|
});
|
},
|
/**
|
* 查询电源实时告警
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
getAlarmData(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerAlarmAction_power_getAllPage',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 获取绝缘装置的实时信息
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
getIsolatingDeviceData(data) {
|
return axios({
|
method: 'post',
|
url: 'FBS9100InsulateStateAction_action_getDataByDevId',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 获取充电机的实时信息
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
getChargeDeviceData(data) {
|
return axios({
|
method: 'post',
|
url: 'FBS9100ChargerStateAction_action_getDataByDevId',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询已经存在的机房站点
|
* @param {[Object]} data 电源设备ID
|
*/
|
getExistStations(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getExistStations',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询电源记录包含的省
|
*/
|
searchProvince(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getProvinces',
|
data: null,
|
});
|
},
|
/**
|
* 查询电源记录省内包含的市
|
* @param {[Object]} data {stationName1:123123}
|
*/
|
searchCity(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getCities',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询电源记录市内包含的区县
|
* @param {[Object]} data {stationName2:123123}
|
*/
|
searchCounty(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getDistricts',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询电源记录区县内包含的站点
|
* @param {[Object]} data {stationName5:123123}
|
*/
|
getStations(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getStations',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 查询电源站点内的设备
|
* @param {[Object]} data {stationName5:123123}
|
*/
|
getPowerDevices(data) {
|
return axios({
|
method: 'post',
|
url: 'PowerInfAction_power_getPowerDevices',
|
data: 'json=' + JSON.stringify(data),
|
});
|
},
|
/**
|
* 获取配电柜的实时数据
|
* @param id 电源的id
|
* @returns {AxiosPromise}
|
*/
|
getPowerBoxData(id) {
|
return axios({
|
method: 'post',
|
url: 'PowerAction_power_getPowerInfoById',
|
data: 'json=' + JSON.stringify({
|
powerDeviceId: id,
|
}),
|
});
|
},
|
/**
|
*查询配电箱实时告警列表
|
*@param {[Object]}data{stationName5:123123}
|
*/
|
getAllPage2(data){
|
return axios({
|
method:'post',
|
url:'PowerAlarmAction_power_getAllPage2',
|
data:'json='+JSON.stringify(data),
|
});
|
},
|
getPowerACDCConfigById(id) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_getPowerACDCConfigById',
|
data:'json='+JSON.stringify({
|
powerDeviceId: id,
|
}),
|
});
|
},
|
updatePowerACDCConfig(params) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_updatePowerACDCConfigById',
|
data:'json='+JSON.stringify(params),
|
});
|
},
|
|
getPowerACConfigById(id) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_getPowerACConfigById',
|
data:'json='+JSON.stringify({
|
powerDeviceId: id,
|
}),
|
});
|
},
|
updatePowerACConfig(params) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_updatePowerACConfigById',
|
data:'json='+JSON.stringify(params),
|
});
|
},
|
|
getPowerDCConfigById(id) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_getPowerDCConfigById',
|
data:'json='+JSON.stringify({
|
powerDeviceId: id,
|
}),
|
});
|
},
|
updatePowerDCConfig(params) {
|
return axios({
|
method:'post',
|
url:'PowerConfigAction_power_updatePowerDCConfigById',
|
data:'json='+JSON.stringify(params),
|
});
|
},
|
|
/**
|
* 获取通信电源主站和设备告警时间差列表
|
* @returns {AxiosPromise}
|
*/
|
getPowerAlarmAdjList() {
|
return axios({
|
method:'post',
|
url:'PowerAlarmAdjAction_power_getList',
|
data:null,
|
});
|
},
|
delPowerAlarmAdjList(num) {
|
return axios({
|
method:'post',
|
url:'PowerAlarmAdjAction_power_delete',
|
data:'json='+JSON.stringify({
|
num
|
}),
|
});
|
},
|
getPowerDisplayConfigList() {
|
return axios({
|
method: 'post',
|
url: 'PowerDisplayConfigAction_power_getList',
|
data: null,
|
});
|
},
|
updatePowerDisplayConfig(params) {
|
return axios({
|
method:'post',
|
url:'PowerDisplayConfigAction_power_addOrUpdate',
|
data:'json='+JSON.stringify(params),
|
});
|
},
|
getPowerAlarmTimeout() {
|
return axios({
|
method:'post',
|
url:'PowerAlarmTimeoutAction_power_getList',
|
data: null,
|
});
|
},
|
delPowerAlarmTimeout(num) {
|
return axios({
|
method:'post',
|
url:'PowerAlarmTimeoutAction_power_delete',
|
data: 'json='+JSON.stringify({
|
num
|
}),
|
});
|
},
|
}
|