import axios from "@/assets/js/axios";
|
|
/**
|
* 查询机房信息
|
* 参数:json = {"StationName1":"北京市","StationName2":"市辖区","StationName5":"海淀区"}
|
*/
|
export const searchStation = (params) => {
|
return axios({
|
method: "post",
|
url: "BattInfAction!serchAllStationName",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
/**
|
* 查询电池组信息
|
* 参数:json = {"StationName1":"北京市","StationName2":"市辖区","StationName5":"海淀区","StationName3":"紫晶科技机房"}
|
*/
|
export const searchBattInfo = (params) => {
|
return axios({
|
method: "post",
|
url: "BattInfAction!serchAllBattinf",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
/**
|
* 根据电池组ID查询电池组信息
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const getBattGroupInfo = (params) => {
|
return axios({
|
method: 'post',
|
url: 'BattInfAction!findByBattGroupId',
|
data: 'bif.BattGroupId=' + params,
|
})
|
}
|
/**
|
* 查询电池告警参数
|
* 参数:json={"dev_id":910000022}
|
*/
|
export const realTimeAlarm = (params) => {
|
return axios({
|
method: "post",
|
url: "Dev_paramAction!serchParamById",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
/**
|
* 根据电池组id查询该电池组中所有电池信息 (图表数据)
|
* json={"BattGroupId":1005074}
|
*/
|
export const realTimeSearch = (params) => {
|
return axios({
|
method: "post",
|
url: "Batt_rtdataAction_serchByCondition",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
/**
|
* 根据电池组id查询电池组实时组端信息
|
* 参数:rtstate.battGroupId=1005074
|
*/
|
export const realTimeGroup = (params) => {
|
return axios({
|
method: "post",
|
url: "Batt_rtstateAction_serchByCondition",
|
data: "rtstate.battGroupId=" + params
|
})
|
}
|
/**
|
* 查询历史实时数据
|
* @param json:{"dev_id":618500002}
|
* @returns {AxiosPromise}
|
*/
|
export const JhStateActionSerchByCondition = (params) => {
|
// 查询后台
|
return axios({
|
method: "post",
|
url: "JhStateAction_action_serchByCondition",
|
data: "json=" + JSON.stringify(params)
|
});
|
}
|