import axios from "./axios";
|
|
/**
|
* 获取充放电记录
|
* 参数: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",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
|
/**
|
* 获取顶部电池组信息
|
* 参数:btds.BattGroupId=1005129&btds.test_record_count=7
|
*/
|
export const searchBattTestDataStop = (BattGroupId, count) => {
|
return axios({
|
method: "post",
|
url: "BatttestdatastopAction_findByInfo",
|
data: "btds.BattGroupId="+BattGroupId+"&btds.test_record_count="+count
|
})
|
}
|
|
/**
|
* 查询历史数据
|
* 参数: json={"BattGroupId":1005129,"test_record_count":"7"}
|
*/
|
export const searchHistory = (params) => {
|
params.data_new = params.data_new?params.data_new:1000;
|
return axios({
|
method: "post",
|
url: "BatttestdataAction!findhistory",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
export const searchBattresdata = (BattGroupId) => {
|
return axios({
|
method: "post",
|
url: "Batt_rtdataAction!serchResById",
|
data: "json=" + JSON.stringify({
|
BattGroupId: BattGroupId,
|
})
|
});
|
}
|
export const searchAll_lowAction = () => {
|
return axios({
|
method: "post",
|
url: "Batt_param_lowAction_searchAll",
|
data: null
|
});
|
}
|
/**
|
* 查询(61850)最后一次核容放电数据
|
* num为FBSDeviceId
|
* 参数:json={"num":910000119,"BattGroupId":1005129}
|
*/
|
export const getLastCapacityTest = (data) => {
|
return axios({
|
method: "post",
|
url: "Batttestdata_infAction_searchBattLastHrDataById",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
/**
|
* 查询LD9测试数据列表
|
* Ld9testdata_infAction_ld9action_searchInfList
|
* 参数:json={"BattGroupId":1005129}
|
*/
|
export const getLD9TestList = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdata_infAction_ld9action_searchInfList",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* 查询LD9 单体测试数据
|
* Ld9testdataAction_ld9action_serchByCondition
|
* 参数:json={"BattGroupId":1000061,"test_record_count":39,"record_num":3,"test_monnum":1}
|
*/
|
export const getLD9Testdata = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdataAction_ld9action_serchByCondition",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* 查询LD9测试组端数据
|
* Ld9testdatastopAction_ld9action_serchByInfo
|
* 参数:json={"BattGroupId":1000061,"test_record_count":39,"record_num":3,"test_monnum":1}
|
*/
|
export const getLD9GrpTestdata = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdatastopAction_ld9action_serchByInfo",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* 查询LD9 一次测试中所有单体的实际容量
|
* Ld9testdatastopAction_ld9action_serchByCondition
|
* 参数:json={"BattGroupId":1000061,"test_record_count":39}
|
*/
|
export const getLD9MonCaps = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdatastopAction_ld9action_serchByCondition",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
/**
|
* 查询LD9 一次测试中所有单体的数据
|
* Ld9testdataAction_ld9action_serchLD9AllGroupByTestRecordCount
|
* 参数:json={"BattGroupId":"1000061","test_record_count":"14"}
|
*/
|
export const getLD9AllTestData = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdataAction_ld9action_serchLD9AllGroupByTestRecordCount",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|
/**
|
* LD9 上传echart图片
|
* Ld9testdataAction_ld9action_filePicUpload
|
* 参数:json={"BattGroupId":"1000061","test_record_count":"14", "mon_num": "1", "map_pic": {"组端电压折线图.png": ""}}
|
*/
|
export const uploadLD9Pic = (data) => {
|
return axios({
|
method: "post",
|
url: "Ld9testdataAction_ld9action_filePicUpload",
|
data: 'json=' + JSON.stringify(data)
|
});
|
}
|