import axios from "axios";
|
export default {
|
/**
|
* 查询A059的机房列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
getA059StationList (data) {
|
return axios({
|
method: "POST",
|
url: 'BattInfAction!serchAllStationName_8059',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
/**
|
* Fgcd_filedownloadAction_action_serchByCondition
|
* 实时查询设备文件下载情况 传参
|
* json:{"dev_id":"805900001"}
|
* 0 不下载
|
* 1 正在下载
|
* 2 下载完成
|
* -1 下载失败
|
*/
|
,getDownloadInfo (id) {
|
return axios({
|
method: "POST",
|
url: 'Fgcd_filedownloadAction_action_serchByCondition',
|
data: "json=" + JSON.stringify({dev_id: id})
|
});
|
}
|
|
/**
|
* Fgcd_filedownloadAction_action_sendCmdToA059_readFile
|
* A059一体机命令操作读取设备文件的cmd和ack校验 file_index页码数
|
* 传参json:{"dev_id":"805900001","op_cmd":"161","file_index":"1"}
|
*/
|
,getFileList (data) {
|
return axios({
|
method: "POST",
|
url: 'Fgcd_filedownloadAction_action_sendCmdToA059_readFile',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
/**
|
* 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"}
|
*/
|
,importData (data) {
|
return axios({
|
method: "POST",
|
url: 'Fgcd_filedownloadAction_action_sendCmdToA059_downLoadFile',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* Fbotestdata_infAction!serchByCondition
|
* 下拉读取导入数据记录,test_type分充电:2 ,放电:3 ,活化:4
|
* 传参 json:{"BattGroupId":"1000007"}
|
*/
|
,getTestList (data) {
|
return axios({
|
method: "POST",
|
url: 'Fbotestdata_infAction!serchByCondition',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* FbotestdataAction!serchByCondition
|
* 查询具体某一次放电的详细数据
|
* 传参 json:{"test_record_count":"1","BattGroupId":"1000007"}
|
*/
|
,getTestData (data) {
|
return axios({
|
method: "POST",
|
url: 'FbotestdataAction!serchByCondition',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* Fbotestdata_infAction!del
|
* 一体机界面查看到导入错误数据,删除
|
* json:{"BattGroupId":"1000048","test_record_count":"1"}
|
*/
|
,delTestData (data) {
|
return axios({
|
method: "POST",
|
url: 'Fbotestdata_infAction!del',
|
data: "json=" + JSON.stringify(data)
|
});
|
}
|
|
/**
|
* Fgcd_filedownloadAction_action_sendCmdToA059_stopFile
|
* A059一体机命令操作停止下载文件
|
* json:{"dev_id":"805900001"}
|
*/
|
,stopImport (data) {
|
return axios({
|
method: "POST",
|
url: 'Fgcd_filedownloadAction_action_sendCmdToA059_stopFile',
|
data: "json=" + JSON.stringify(data)
|
});
|
},
|
|
/**
|
* 读取图片
|
* @param devId 设备id
|
* @returns {AxiosPromise}
|
*/
|
searchPicture(devId) {
|
return axios({
|
method: "POST",
|
url: 'Fgcd_filedownloadAction_action_readA059Pictrue',
|
data: "json="+devId
|
});
|
},
|
|
/**
|
* 开始显示图片
|
* @param devId 设备id
|
* @returns {AxiosPromise}
|
*/
|
startShowPicture(devId) {
|
return axios({
|
method: "POST",
|
url: 'Fbs9100_setparamAction_action_StartOrStopShowPic',
|
data: "json="+JSON.stringify({
|
op_cmd: 188,
|
dev_id: devId,
|
})
|
});
|
},
|
|
/**
|
* 停止显示图片
|
* @param devId 设备id
|
* @returns {AxiosPromise}
|
*/
|
stopShowPicture(devId) {
|
return axios({
|
method: "POST",
|
url: 'Fbs9100_setparamAction_action_StartOrStopShowPic',
|
data: "json="+JSON.stringify({
|
op_cmd: 190,
|
dev_id: devId,
|
})
|
});
|
}
|
}
|