import axios from "./axios";
|
|
/**
|
* 查询所有的阀值
|
* 无参
|
*/
|
export const realTimeMonitoring = () => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_param_lowAction_searchAll",
|
data: null
|
})
|
}
|
|
|
/**
|
* 查询均衡供电模块信息
|
* json={"dev_id": ""}
|
*/
|
export const realTimePower = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/JhStateAction_action_serchByCondition",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
|
/**
|
* 根据设备id查询设备当前的开关状态
|
* json={"dev_id":910000022}
|
*/
|
export const realTimePowerOff = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Fbs9100_stateAction_action_serchContactorState",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
/**
|
* 根据电池组id查询电池组实时组端信息
|
* 参数:rtstate.battGroupId=1005074
|
*/
|
export const realTimeGroup = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_rtstateAction_serchByCondition",
|
data: "rtstate.battGroupId="+params
|
})
|
}
|
|
|
/**
|
* 根据电池组id查询该电池组中所有电池信息 (图表数据)
|
* json={"BattGroupId":1005074}
|
*/
|
export const realTimeSearch = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_rtdataAction_serchByCondition",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
|
/**
|
* 查询电池告警参数
|
* 参数:json={"dev_id":910000022}
|
*/
|
export const realTimeAlarm = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Dev_paramAction!serchParamById",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
/**
|
* 获取当前选中的单体是否已经被添加
|
* 参数:json={"BattGroupId":1005151,"MonNum":"1"}
|
*/
|
export const realTimeNot = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_attentionAction!judgeInOrNot",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
/**
|
* 添加关注单体
|
* json={"BattGroupId":"1005151","MonNum":"1"}
|
*/
|
export const realTimeAdd = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_attentionAction!add",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
|
/**
|
* 查询自己管理的电池组中充放电状态
|
* 无参
|
*/
|
export const realTimeState = () => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Batt_rtstateAction!serchDisOrChargrNew",
|
data: null
|
})
|
}
|
|
/**
|
* 查询用户的图表颜色参数
|
* 无参
|
*/
|
export const realTimeColor = () => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Chart_ColorAction!serchByCondition",
|
data: null
|
})
|
}
|
|
/**
|
* 修改用户的图表颜色参数
|
* 参数:json={"min_color":"#FF0000","max_color":"#00FF00","normal_color":"#33ACFF",
|
* "change_color":"#FFFF00","warn_color":"#FF00FF"}
|
*/
|
export const realTimeColorParams = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Chart_ColorAction!update",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|
|
/**
|
* 查询所有61850设备的告警状态
|
* 无参
|
*/
|
export const realTimeAlarmStatus = () => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/Fbs9100_stateAction_action_serchBy61850Alarms",
|
data: null
|
})
|
}
|
|
|
/**
|
* 查询电池单体的内阻曲线数据 (弹出框)
|
* 参数:json={"BattGroupId":1005151,"MonNum":11}
|
*/
|
export const realTimeCurve = (params) => {
|
return axios({
|
method: "post",
|
url: "/yckj/zijing_sx/BattresdataAction!serchByMonHistory",
|
data: "json=" + JSON.stringify(params)
|
})
|
}
|