import axios from "axios";
|
|
/**
|
* 查询(61850)最后一次核容放电数据
|
* Batttestdata_infAction_searchBattLastHrDataById // 旧
|
* num为FBSDeviceId
|
* 参数:json={"num":910000119,"BattGroupId":1005129}
|
*/
|
export const getLastCapacityTest = (params) => {
|
return axios({
|
method: "POST",
|
url: "Batttestdata_infAction/searchBattLastHrDataById",
|
params,
|
});
|
};
|
/**
|
* Batt_param_lowAction_searchAll // 旧
|
*/
|
export const searchAll_lowAction = () => {
|
return axios({
|
method: "GET",
|
url: "Batt_param_lowAction/searchAll",
|
});
|
};
|
/**
|
* 添加标准曲线
|
* Battmon_testcapAction!add // 旧
|
*/
|
export const addStandardLine = (data) => {
|
return axios({
|
method: "POST",
|
url: "Battmon_testcapAction/add",
|
data,
|
});
|
};
|
/**
|
* 查询内阻信息
|
* Batt_rtdataAction!serchResById // 旧
|
*/
|
export const searchBattresdata = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "Batt_rtdataAction/serchResById",
|
params: {
|
battGroupId,
|
},
|
});
|
};
|
/**
|
* 获取充放电记录
|
* Batttestdata_infAction_searchBattTestInfDataById // 旧
|
* 参数:json={"num":910000119,"BattGroupId":1005129}
|
* 返回结果说明:
|
* test_type==3&&test_starttype==3?核容放电:监测放电
|
* test_type==2&&test_starttype=3?核容充电:监测充电
|
* test_starttime 开始测试时间
|
* test_record_count 后台记录的笔数
|
* test_stoptype_reason 停止原因
|
*/
|
|
export const searchBattTestData = (params) => {
|
return axios({
|
method: "POST",
|
url: "Batttestdata_infAction/searchBattTestInfDataById",
|
params,
|
});
|
};
|
/**
|
* 查询历史数据
|
* BatttestdataAction!findhistory // 旧
|
* {"battGroupId":1005129,"testRecordCount":"7"}
|
*/
|
export const searchHistory = (params) => {
|
params.dataNew = params.dataNew || 1000;
|
return axios({
|
method: "GET",
|
url: "BatttestdataAction/findhistory",
|
params,
|
});
|
};
|
|
/**
|
* 历史内阻数据查询
|
* BattresdataAction!getResInfoByBattGroupId // 旧
|
*/
|
export const historyResData = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "BattresdataAction/getResInfoByBattGroupId",
|
params: {
|
battGroupId,
|
},
|
});
|
};
|
/**
|
* 查询机房名称 落后单体电压等
|
* {pageNum, pageSize}
|
* {}
|
* BattTest_ResAction!serchByCondition // 旧
|
*/
|
export const dataSeachroms = (params, data) => {
|
return axios({
|
method: "POST",
|
url: "battTestData/calcTestData",
|
params,
|
data,
|
});
|
};
|
/**
|
* 历史数据管理数据删除
|
* BattTest_ResAction!delete // 旧
|
* {
|
* battGroupId,
|
* num,
|
* testRecordCount,
|
* testType
|
* }
|
*/
|
export const resActionDelete = (params) => {
|
return axios({
|
method: "POST",
|
url: "battTestData/delete",
|
params,
|
});
|
};
|
/**
|
* 查询标准曲线
|
* Battmon_testcapAction!serchByCondition // 旧
|
*/
|
export const searchStandardLine = (data) => {
|
return axios({
|
method: "POST",
|
url: "Battmon_testcapAction/testCapList",
|
data,
|
});
|
};
|
/**
|
* 查询所有的标准曲线
|
* {pageNum, pageSize}
|
* Battmon_standardcurveAction!serchByCondition // 旧
|
*/
|
export const searchStandardLines = (params) => {
|
return axios({
|
method: "GET",
|
url: "battMonStandardCure/page",
|
params,
|
});
|
};
|
/**
|
* 查询LD9测试数据列表
|
* {battGroupId}
|
* Ld9testdata_infAction_ld9action_searchInfList // 旧
|
*/
|
export const getLD9TestList = (params) => {
|
return axios({
|
method: "GET",
|
url: "Ld9testdata_infAction/searchInfList",
|
params,
|
});
|
};
|
|
/**
|
* 查询LD9 单体测试数据
|
* Ld9testdataAction_ld9action_serchByCondition // 旧
|
* {"battGroupId":1000061,"testRecordCount":39,"recordNum":3,"testMonNum":1}
|
*/
|
export const getLD9Testdata = (params) => {
|
return axios({
|
method: "GET",
|
url: "Ld9testdataAction/serchByCondition",
|
params,
|
});
|
};
|
|
/**
|
* 查询LD9测试组端数据
|
* Ld9testdatastopAction_ld9action_serchByInfo // 旧
|
* {"battGroupId":1000061,"testRecordCount":39,"record_num":3,"testMonNum":1}
|
*/
|
export const getLD9GrpTestdata = (params) => {
|
return axios({
|
method: "GET",
|
url: "Ld9testdatastopAction/serchByInfo",
|
params,
|
});
|
};
|
|
/**
|
* 查询LD9 一次测试中所有单体的实际容量
|
* Ld9testdatastopAction_ld9action_serchByCondition // 旧
|
* {"battGroupId":1000061,"testRecordCount":39}
|
*/
|
export const getLD9MonCaps = (params) => {
|
return axios({
|
method: "GET",
|
url: "Ld9testdatastopAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 查询LD9 一次测试中所有单体的数据
|
* Ld9testdataAction_ld9action_serchLD9AllGroupByTestRecordCount // 旧
|
* 参数:{"battGroupId":"1000061","testRecordCount":"14"}
|
*/
|
export const getLD9AllTestData = (data) => {
|
return axios({
|
method: "POST",
|
url: "Ld9testdataAction/getLD9AllGroupByTestRecordCount",
|
data,
|
});
|
};
|
/**
|
* LD9 上传echart图片
|
* Ld9testdataAction_ld9action_filePicUpload // 旧
|
* 参数:json={"battGroupId":"1000061","testRecordCount":"14", "monNum": "1", "mapPic": {"组端电压折线图.png": ""}}
|
*/
|
export const uploadLD9Pic = (data) => {
|
return axios({
|
method: "POST",
|
url: "Ld9testdataAction/filePicUpload",
|
data,
|
});
|
};
|
|
/**
|
* 历史数据查看测试参数
|
* {battGroupId, testRecordCount}
|
*/
|
export const getTestParam = (params) => {
|
return axios({
|
method: "GET",
|
url: "BattTestparamController/searchBattTestparam",
|
params,
|
});
|
};
|
|
/**
|
* 获取电源主合和备合
|
* @param pageCurr 当前页
|
* @param pageSize 每页数量
|
* @param powerDeviceId 设备id
|
* @returns {AxiosPromise}
|
*/
|
export const getEventById = (pageCurr, pageSize, powerDeviceId) => {
|
return axios({
|
method: "GET",
|
url: "pwrdevEvent/getEventById",
|
params: {
|
pageCurr,
|
pageSize,
|
powerDeviceId,
|
},
|
});
|
};
|
|
/**
|
* 导出数据
|
* @param data 生成导出数据的条件
|
* @return {AxiosPromise}
|
*/
|
export const exportReport = (data) => {
|
return axios({
|
method: "GET",
|
url: "poIWordExport",
|
responseType: "blob",
|
params: {
|
json: JSON.stringify(data),
|
},
|
});
|
};
|
|
/**
|
* 清洗数据
|
* @param battGroupId 电池组id
|
* @param testRecordCount 测试记录
|
* @return {AxiosPromise}
|
*/
|
export const clearDirtyDataAPI = (battGroupId, testRecordCount) => {
|
return axios({
|
method: "GET",
|
url: "BatttestdataAction/clearTdata",
|
params: {
|
battGroupId,
|
testRecordCount,
|
},
|
});
|
};
|
|
/**
|
* 恢复数据
|
* @param battGroupId 电池组id
|
* @param testRecordCount 测试记录
|
* @return {AxiosPromise}
|
*/
|
export const recoveryDirtyDataAPI = (battGroupId, testRecordCount) => {
|
return axios({
|
method: "GET",
|
url: "BatttestdataAction/recoverTdata",
|
params: {
|
battGroupId,
|
testRecordCount,
|
},
|
});
|
};
|