import axios from "axios";
|
|
/**
|
* 查询A059的机房列表
|
* BattInfAction!serchAllStationName_8059 // 旧
|
*/
|
export const getA059StationList = () => {
|
return axios({
|
method: "GET",
|
url: 'battInf/stationList8059'
|
});
|
}
|
/**
|
* Fgcd_filedownloadAction_action_serchByCondition // 旧
|
* 实时查询设备文件下载情况 传参
|
* json:{"deviceId":"805900001"}
|
* 0 不下载
|
* 1 正在下载
|
* 2 下载完成
|
* -1 下载失败
|
*/
|
export const getDownloadInfo = (deviceId) => {
|
return axios({
|
method: "GET",
|
url: 'FGCDFileDownload/listByDeviceId',
|
params: {
|
deviceId
|
}
|
});
|
}
|
|
/**
|
* Fgcd_filedownloadAction_action_sendCmdToA059_readFile // 旧
|
* {deviceId, fileIndex}
|
* A059一体机命令操作读取设备文件的cmd和ack校验 file_index页码数
|
* 传参json:{"dev_id":"805900001","op_cmd":"161","file_index":"1"}
|
*/
|
export const getFileList = (params) => {
|
return axios({
|
method: "POST",
|
url: 'FGCDFileDownload/sendCmdToA059_readFile',
|
params
|
});
|
}
|
/**
|
* Fgcd_filedownloadAction_action_sendCmdToA059_downLoadFile // 旧
|
* A059一体机命令操作导入设备文件的cmd和ack校验 BattGroupId 电池组id,file_index文件对应的索引号
|
* 传参json:{"dev_id":"805900001","op_cmd":"163","BattGroupId":"1000048""download_flag1":"1","download_flag2":"1","download_flag3":"1", "download_flag4":"1""download_flag5":"1","download_flag6":"1","download_flag7":"1","download_flag8":"1"}
|
*/
|
export const importData = (data) => {
|
return axios({
|
method: "POST",
|
url: 'FGCDFileDownload/sendCmdToA059_downloadFile',
|
data
|
});
|
}
|
|
/**
|
* Fbotestdata_infAction!serchByCondition // 旧
|
* {battGroupId}
|
* 下拉读取导入数据记录,test_type分充电:2 ,放电:3 ,活化:4
|
* 传参 json:{"BattGroupId":"1000007"}
|
*/
|
export const getTestList = (params) => {
|
return axios({
|
method: "GET",
|
url: 'fBOTestDataInf/list',
|
params
|
});
|
}
|
|
/**
|
* FbotestdataAction!serchByCondition // 旧
|
* {battGroupId, testRecordCount}
|
* 查询具体某一次放电的详细数据
|
* 传参 json:{"test_record_count":"1","BattGroupId":"1000007"}
|
*/
|
export const getTestData = (params) => {
|
return axios({
|
method: "GET",
|
url: 'FBOTestData/list',
|
params
|
});
|
}
|
|
/**
|
* Fbotestdata_infAction!del // 旧
|
* {battGroupId, testRecordCount}
|
* 一体机界面查看到导入错误数据,删除
|
* json:{"BattGroupId":"1000048","test_record_count":"1"}
|
*/
|
export const delTestData = (params) => {
|
return axios({
|
method: "POST",
|
url: 'fBOTestDataInf/delete',
|
params
|
});
|
}
|
|
/**
|
* Fgcd_filedownloadAction_action_sendCmdToA059_stopFile // 旧
|
* A059一体机命令操作停止下载文件
|
* {deviceId}
|
*/
|
export const stopImport = (params) => {
|
return axios({
|
method: "POST",
|
url: 'FGCDFileDownload/sendCmdToA059',
|
params
|
});
|
}
|