import axios from "axios";
|
export default {
|
/**
|
* 添加标准曲线
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
addStandardLine(data) {
|
return axios({
|
method: "post",
|
url: 'Battmon_testcapAction!add',
|
data: "json=" + JSON.stringify(data)
|
});
|
},
|
/**
|
* 查询标称电压
|
* @returns {AxiosPromise}
|
*/
|
searchByMonVolStd() {
|
return axios({
|
method: "post",
|
url: 'BattInfAction!serchByMonVolStd',
|
data: null
|
});
|
},
|
/**
|
* 查询标称容量
|
* @returns {AxiosPromise}
|
*/
|
searchByMonCapStd() {
|
return axios({
|
method: "post",
|
url: 'BattInfAction!serchByMonCapStd',
|
data: null
|
});
|
},
|
/**
|
* 查询放电小时率
|
*/
|
searchAllTestCap() {
|
return axios({
|
method: "post",
|
url: 'Battmon_testcapAction!searchAll',
|
data: null
|
});
|
},
|
/**
|
* 查询标准曲线
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
searchStandardLine(data) {
|
return axios({
|
method: "post",
|
url: 'Battmon_testcapAction!serchByCondition',
|
data: "json=" + JSON.stringify(data)
|
});
|
},
|
/**
|
* 查询所有的标准曲线
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
searchStandardLines(data) {
|
return axios({
|
method: "post",
|
url: 'Battmon_standardcurveAction!serchByCondition',
|
data: "json=" + JSON.stringify(data)
|
});
|
},
|
/**
|
* 查询电源信息历史数据
|
* @param params
|
*/
|
powerHistoryData(data) {
|
return axios({
|
method: "post",
|
url: 'PwrdevDataHistoryAction_power_getPwrdevDataHistory',
|
data: "json=" + JSON.stringify(data)
|
});
|
},
|
|
/**
|
* 历史内阻数据查询
|
*
|
* @param {[Number]} id 参数
|
*
|
* @return {[Promise]} 返回结果
|
*/
|
historyResData(id) {
|
return axios({
|
method: "post",
|
url: 'BattresdataAction!getResInfoByBattGroupId',
|
data: "json=" + JSON.stringify({
|
BattGroupId: id
|
})
|
});
|
},
|
/**
|
* 更新标准内阻值
|
* @param data
|
* json:{BattGroupId:"1000003",test_starttime:"2020-10-21 15:02:09"}
|
* @returns {AxiosPromise}
|
*/
|
updateStandardRes(data) {
|
return axios({
|
method: "post",
|
url: 'BattresdataAction!setStandard',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
};
|