import const_curing from "@/assets/js/const/const_curing";
|
import const_dcdc from "@/assets/js/const/const_dcdc";
|
import axios from "axios";
|
|
/**
|
* 获取当前选中的单体是否已经被关注过
|
* Batt_attentionAction!judgeInOrNot // 旧
|
* 参数:json={"BattGroupId":1005151,"MonNum":"1"}
|
*/
|
export const realTimeNot = (params) => {
|
return axios({
|
method: "GET",
|
url: "battAttention/judgeInOrNot",
|
params,
|
});
|
};
|
/**
|
* 根据电池组id查询该电池组中所有电池信息 (图表数据)
|
* Batt_rtdataAction_serchByCondition // 旧
|
* json={"BattGroupId":1005074}
|
*/
|
export const realTimeSearch = (params) => {
|
return axios({
|
method: "GET",
|
url: "Batt_rtdataAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 根据电池组id查询电池组实时组端信息
|
* Batt_rtstateAction_serchByCondition // 旧
|
*/
|
export const realTimeGroup = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "BattRtstate/serchByCondition",
|
params: {
|
battGroupId,
|
},
|
});
|
};
|
/**
|
* 根据设备id查询设备当前的开关状态
|
* {devId}
|
* Fbs9100_stateAction_action_serchContactorState // 旧
|
*/
|
export const realTimePowerOff = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_stateAction/serchContactorState",
|
params,
|
});
|
};
|
/**
|
* 通过设备id查询LD9数据
|
* {devId}
|
* LD9_stateAction_ld9action_searchByDevId // 旧
|
* @returns
|
*/
|
export const realTimeLd9Data = (params) => {
|
return axios({
|
method: "GET",
|
url: "LD9_stateAction/searchByDevId",
|
params,
|
});
|
};
|
/**
|
* 获取参数
|
* {
|
* battGroupid,
|
* devId,
|
* num
|
* }
|
* LD9_setparamAction_ld9action_serchByCondition // 旧
|
*/
|
export const getLD9Params = (params) => {
|
return axios({
|
method: "GET",
|
url: "LD9_setparamAction/serchByCondition",
|
params,
|
});
|
};
|
|
/**
|
* 设定参数
|
* LD9_setparamAction_ld9action_update // 旧
|
*/
|
export const setLD9Params = (data) => {
|
return axios({
|
method: "POST",
|
url: "LD9_setparamAction/update",
|
data,
|
});
|
};
|
|
/**
|
* 获取参数
|
* {
|
* devId
|
* }
|
*/
|
export const getLD6Params = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchLD6",
|
params,
|
});
|
};
|
|
/**
|
* 设定参数
|
*/
|
export const setLD6Params = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateLD6",
|
data,
|
});
|
};
|
/**
|
* 获取剩余天数,工作模式,组端电压,峰值电压
|
* Fbs9100s_fod_stateAction_action_serchByCondition // 旧
|
*/
|
export const realTimeStateList = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100s_fod_stateAction/serchByCondition",
|
params: {
|
battGroupId,
|
},
|
});
|
};
|
/**
|
* 电池组单体告警
|
* BattRtAlarmAction!getInfo // 旧
|
* {battGroupId}
|
*/
|
export const BattRtAlarmActionGetInfo = (params) => {
|
// 查询后台
|
return axios({
|
method: "GET",
|
url: "BattRtAlarmAction/getInfo",
|
params,
|
});
|
};
|
/**
|
* 读取模拟量
|
* 读取锂电池信息 暂定读取组一的
|
* Li9130BmsStateAction!searchParam // 旧
|
* {devId}
|
*/
|
export const getDcDcAnalogParams = (params) => {
|
// 查询后台
|
return axios({
|
method: "GET",
|
url: "Li9130BmsStateAction/searchParam",
|
params,
|
});
|
};
|
/**
|
* 读取告警量
|
* {devId}
|
* Li9130BmsAlmAction!searchParam // 旧
|
*/
|
export const getDcDcWarnParams = (params) => {
|
// 请求后台查询内容
|
return axios({
|
method: "GET",
|
url: "Li9130BmsAlmAction/searchParam",
|
params,
|
});
|
};
|
/**
|
* 电池组组端告警
|
* BattRsAlarmAction!getInfo // 旧
|
* @param json:{"dev_id":618500002}
|
* @returns {AxiosPromise}
|
*/
|
export const BattRsAlarmActionGetInfo = (params) => {
|
// 查询后台
|
return axios({
|
method: "GET",
|
url: "BattRsAlarmAction/getInfo",
|
params,
|
});
|
};
|
/**
|
* 清除告警 设置参数
|
* Fbs9100_sysparamAction_action_update61850 // 旧
|
*/
|
export const clearWarn = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_sysparamAction/update61850",
|
data,
|
});
|
};
|
/**
|
* 获取参数
|
* {devId}
|
* Fbs9100_sysparamAction_action_serchByCondition // 旧
|
*/
|
export const getParams = (params) => {
|
// 请求后台查询内容
|
return axios({
|
method: "GET",
|
url: "Fbs9100_sysparamAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 发送指令 启停
|
* {
|
* num,
|
* devId
|
* }
|
* LD9_setparamAction_ld9action_serchbyDev_id // 旧
|
*/
|
export const ld9Control = (params) => {
|
return axios({
|
method: "GET",
|
url: "LD9_setparamAction/serchbyDev_id",
|
params,
|
});
|
};
|
/**
|
* 启动 停止测试 e61850Control
|
* {
|
* num,
|
* devId,
|
* testCmd = 0 默认为0
|
* }
|
* Fbs9100_setparamAction_action_serchbyDev_id // 旧
|
*/
|
export const btsControl = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/serchbyDev_id",
|
params: {
|
testCmd: 0,
|
...params,
|
},
|
});
|
};
|
|
/**
|
* 启动内阻测试
|
* @param devId
|
* @param battGroupNum
|
* @return {AxiosPromise}
|
*/
|
export const startResTest = (devId, battGroupNum) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/serchbyDev_id_res",
|
params: {
|
devId,
|
battGroupNum,
|
},
|
});
|
};
|
/**
|
* 读取FBO_4830放电参数
|
* {
|
* opCmd,
|
* devId,
|
* }
|
*/
|
export const getFBO4830Param = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchFBO4830Param",
|
params,
|
});
|
};
|
/**
|
* 读取FBO_4831放电参数
|
* {
|
* opCmd,
|
* devId,
|
* }
|
*/
|
export const getFBO4831Param = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchFBO4831Param",
|
params,
|
});
|
};
|
/**
|
* 读取开关电源参数
|
* {
|
* opCmd,
|
* devId,
|
* }
|
*/
|
export const getKgdyParam = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchKgdyParam",
|
params,
|
});
|
};
|
/**
|
* 更新开关电源参数
|
*/
|
export const setKgdyParam = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateKgdyParam",
|
data,
|
});
|
};
|
/**
|
* 更新FBO_4830放电参数
|
*/
|
export const setFBO4830Param = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateFBO4830Param",
|
data,
|
});
|
};
|
/**
|
* 控制FBO_4830 启动停止充放电
|
* {opCmd, devId}
|
*/
|
export const controllerFBO4830 = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/controllerFBO4830",
|
params,
|
});
|
};
|
/**
|
* FBO4815实时页面需要前一百笔历史实时数据
|
* {battGroupId}
|
*/
|
export const serchDate100 = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "Batt_realdataAction/serchDate100",
|
params: { battGroupId },
|
});
|
};
|
/**
|
* 停止养护/除硫
|
* {
|
* devId,
|
* groupNum, // 模块编号
|
* battGroupNum // 电池编号
|
* }
|
* 设置参数时传表单对象
|
* opStr: 'read', 'set', 'startYH', 'startCL', 'stop'
|
* Fbs9100s_fod_paramAction_action_update // 旧
|
*/
|
export const curingControl = (data, opStr) => {
|
// 请求后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100s_fod_paramAction/update",
|
data: {
|
...data,
|
opCmd: const_curing.cmd[opStr],
|
},
|
});
|
};
|
/**
|
* 查询状态信息 控制信息
|
* {categoryId: 1// 状态显示, 2 // 控制信息}
|
* PageParamAction!findByCategoryId // 旧
|
*/
|
export const searchInfo = (params) => {
|
return axios({
|
method: "GET",
|
url: "pageParam/findByCategoryId",
|
params,
|
});
|
};
|
/**
|
* 查询电池告警参数
|
* Dev_paramAction!serchParamById // 旧
|
* {devId}
|
*/
|
export const realTimeAlarm = (params) => {
|
return axios({
|
method: "GET",
|
url: "Dev_paramAction/serchParamById",
|
params,
|
});
|
};
|
/**
|
* 从数据库中读取除硫参数
|
* Fbs9100s_fod_paramAction_action_serchByCondition // 旧
|
* {devId}
|
*/
|
export const readFromDB = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100s_fod_paramAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 更新离线养护除硫的信息 update start stop restart
|
* Fbs9100_setparamAction_action_updateMaintain // 旧
|
* offLineYHTimes 默认传0
|
*/
|
export const outlineControl = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateMaintain",
|
data: {
|
offLineYHTimes: 0,
|
...data,
|
},
|
});
|
};
|
/**
|
* 获取均衡参数
|
* {devId}
|
* Fbs9100_sysparamAction_action_searchJunHengParam // 旧
|
*/
|
export const getBalanceParams = (params) => {
|
// 请求后台查询内容
|
return axios({
|
method: "GET",
|
url: "Fbs9100_sysparamAction/searchJunHengParam",
|
params,
|
});
|
};
|
/**
|
* 设置均衡参数
|
* Fbs9100_sysparamAction_action_update61850JunHeng // 旧
|
*/
|
export const setBalanceParams = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_sysparamAction/update61850JunHeng",
|
data,
|
});
|
};
|
/**
|
* 读取DCDC工作参数
|
* Li9130DCDCParamAction!searchParam // 旧
|
*/
|
export const getDcDcWorkParams = (params) => {
|
return axios({
|
method: "GET",
|
url: "Li9130DCDCParamAction/searchParam",
|
params,
|
});
|
};
|
/**
|
* 设置DCDC工作参数
|
* Li9130DCDCParamAction!updateParam // 旧
|
*/
|
export const setDcDcWorkParams = (data) => {
|
return axios({
|
method: "POST",
|
url: "Li9130DCDCParamAction/updateParam",
|
data: {
|
...data,
|
opCmd: const_dcdc.cmd.set,
|
},
|
});
|
};
|
/**
|
* 启动BTS9611测试
|
* {
|
* cmd,
|
* devId
|
* }
|
* Fbs9600_stateAction_action_update // 旧
|
*/
|
export const startBTS9611 = (params) => {
|
return axios({
|
method: "GET",
|
url: "fbs9600State/update",
|
params,
|
});
|
};
|
/**
|
* 查询历史实时数据
|
* JhStateAction_action_serchByCondition // 旧
|
* {devId}
|
*/
|
export const JhStateActionSerchByCondition = (params) => {
|
// 查询后台
|
return axios({
|
method: "GET",
|
url: "JhStateAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 获取设备的逆变信息
|
* Fbs9100s_nibian_stateAction_action_serchByCondition // 旧
|
*/
|
export const inversionInfo = (devId) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100s_nibian_stateAction/serchByCondition",
|
params: {
|
devId,
|
},
|
});
|
};
|
|
/**
|
* 获取逆变的其他信息
|
* FBS9100sBuscoupleStateAction_action_searchDataByDevId // 旧
|
*/
|
export const inversionData = (devId) => {
|
return axios({
|
method: "GET",
|
url: "FBS9100sBuscoupleStateAction/serchByDevId",
|
params: {
|
devId,
|
},
|
});
|
};
|
/**
|
* 查询所有的放电计划
|
* {devId}
|
* Li9130_setparam_planAction_action_serchByCondition // 旧
|
*/
|
export const searchDcDcPlanAll = (devId) => {
|
// 请求后台查询内容
|
return axios({
|
method: "GET",
|
url: "Li9130_setparam_planAction/serchByCondition",
|
params: {
|
devId,
|
},
|
});
|
};
|
/**
|
* 添加充放电计划
|
* [
|
* {}
|
* ]
|
* Li9130_setparam_planAction_action_add // 旧
|
*/
|
export const addDcDcPlan = (data) => {
|
// 请求后台查询内容
|
return axios({
|
method: "POST",
|
url: "Li9130_setparam_planAction/add",
|
data,
|
});
|
};
|
|
/**
|
* 添加充放电计划
|
* Li9130_setparam_planAction_action_update // 旧
|
*/
|
export const editDcDcPlan = (data) => {
|
// 请求后台查询内容
|
return axios({
|
method: "POST",
|
url: "Li9130_setparam_planAction/update",
|
data,
|
});
|
};
|
|
/**
|
* 删除充放电计划
|
* {
|
* devId,
|
* num
|
* }
|
* Li9130_setparam_planAction_action_del // 旧
|
*/
|
export const delDcDcPlan = (params) => {
|
// 请求后台查询内容
|
return axios({
|
method: "GET",
|
url: "Li9130_setparam_planAction/del",
|
params,
|
});
|
};
|
/**
|
* 设置参数
|
* Fbs9100_setparamAction_action_update // 旧
|
*/
|
export const setParams = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/update",
|
data,
|
});
|
};
|
/**
|
* 设置61850放电参数
|
* Fbs9100_setparamAction_action_update61850Param // 旧
|
*/
|
export const set61850Params = (data) => {
|
// 请求后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/update61850Param",
|
data,
|
});
|
};
|
/**
|
* Ess3100_sysstateAction_action_searchAll
|
* 查询所有的系统状态信息 无参
|
*/
|
export const getSysState = () => {
|
return axios({
|
method: "GET",
|
url: "Ess3100_sysstateAction/searchAll",
|
});
|
};
|
|
/**
|
* Ess3100_pcs_stateAction_action_searchAll
|
* 查询所有的pcs状态信息 无参
|
*/
|
export const getPcsState = () => {
|
return axios({
|
method: "GET",
|
url: "Ess3100_pcs_stateAction/searchAll",
|
});
|
};
|
|
/**
|
* Batt_gtstateAction_action_serchByCondition
|
* 根据电池组id查询储能电池组信息
|
* {"battGroupId":"1000060"}
|
*/
|
export const getBattGrpState = (params) => {
|
return axios({
|
method: "GET",
|
url: "Batt_gtstateAction/serchByCondition",
|
params,
|
});
|
};
|
/**
|
* 添加关注单体
|
* Batt_attentionAction!add // 旧
|
* json={"battGroupId":"1005151","monNum":"1"}
|
*/
|
export const realTimeAdd = (data) => {
|
return axios({
|
method: "POST",
|
url: "battAttention/add",
|
data,
|
});
|
};
|
/**
|
* 获取配电柜的实时数据
|
* {powerDeviceId}
|
* PowerAction_power_getPowerInfoById // 旧
|
*/
|
export const getPowerBoxData = (powerDeviceId) => {
|
return axios({
|
method: "GET",
|
url: "PowerACDCDataAction/getPowerInfoById",
|
params: {
|
powerDeviceId,
|
},
|
});
|
};
|
/**
|
* 查询历史实时数据
|
* Batt_realdataAction!serchByCondition // 旧
|
*/
|
export const searchHistoryRealtimeData = (data) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Batt_realdataAction/serchByCondition",
|
data,
|
});
|
};
|
/**
|
* 根据电池id查询锂电池信息
|
* {battGroupId}
|
* LithiumAction_action_getInfoByBattGroupId // 旧
|
*/
|
export const lithiumBattery = (data) => {
|
return axios({
|
method: "GET",
|
url: "LithiumAction/getInfoByBattGroupId",
|
data,
|
});
|
};
|
/**
|
* 平台自检
|
* @param deviceId 设备ID
|
* @param battGroupId 电池组ID
|
* @param index 电池组编号
|
* @param type 自检步骤
|
* CheckAction!checkStatus 旧
|
*/
|
export const checkStatus = (battGroupId, deviceId, index, type) => {
|
return axios({
|
method: "GET",
|
url: "check/checkStatus",
|
params: {
|
battGroupId,
|
deviceId,
|
index,
|
type,
|
},
|
});
|
};
|
/**
|
* 获取基站的图集
|
* @param stationId
|
* @returns {AxiosPromise}
|
*/
|
export const getStationPic = (stationId) => {
|
return axios({
|
method: "POST",
|
url: "battInf/getStationPic",
|
params: {
|
stationId,
|
},
|
});
|
};
|
/**
|
* 获取电池组参考线值
|
*
|
* 参数:json={"BattGroupId":1005151}
|
*/
|
export const getGuidesData = (params) => {
|
return axios({
|
method: "GET",
|
url: "/battGroupGuides",
|
params,
|
});
|
};
|
/**
|
* 获取电池组参考线值
|
*
|
* 参数:json={"BattGroupId":1005151}
|
*/
|
export const setGuidesData = (data) => {
|
return axios({
|
method: "POST",
|
url: "/battGroupGuides/update",
|
data,
|
});
|
};
|
|
/**
|
* 更新参数
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const update61851 = (data) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_sysparamAction/update61851",
|
data,
|
});
|
};
|
|
/**
|
* 读取参数
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const search61851 = (devId) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_sysparamAction/search61851",
|
params: {
|
opCmd: 0x80,
|
devId,
|
},
|
});
|
};
|
|
/**
|
* 获取电操开关的放电参数
|
* @param devId
|
* @returns {AxiosPromise}
|
*/
|
export const searchEleOperationParams = (devId, battGroupNum) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/getEOperatingSwitchParam",
|
params: {
|
devId,
|
battGroupNum,
|
},
|
});
|
};
|
|
/**
|
* 设置电操开关的
|
* @param devId
|
* @returns {AxiosPromise}
|
*/
|
export const updateEleOperationParams = (data) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateEOperatingSwitchParam",
|
data: data,
|
});
|
};
|
|
/**
|
* 启动电操开关放电
|
* @param devId
|
* @returns {AxiosPromise}
|
*/
|
export const startEleOperation = (devId, testCmd) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateEOperatingSwitchStart",
|
data: {
|
testCmd,
|
devId,
|
},
|
});
|
};
|
|
/**
|
* 停止电操开关放电
|
* @param devId
|
* @returns {AxiosPromise}
|
*/
|
export const stopEleOperation = (devId) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateEOperatingSwitchStop",
|
data: {
|
devId,
|
},
|
});
|
};
|
|
export const setEleOperationSwitch = (data) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateEOperatingSwitchControl",
|
data: data,
|
});
|
};
|
|
/**
|
* 设置初始电量
|
* @param {battGroupId":"xxx","nomCapWH":""}
|
* @returns
|
*/
|
export const setDefaultCap = (data) => {
|
// 查询后台
|
return axios({
|
method: "POST",
|
url: "battInf/updateMonCapWH",
|
data,
|
});
|
};
|
/**
|
* 一键停止
|
* @returns
|
*/
|
export const oneKeyStop = (params) => {
|
// 查询后台
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/serchbyDev_id_li9130",
|
params: {
|
testCmd: 0,
|
...params,
|
},
|
});
|
};
|
|
/**
|
* 9141读取参数 opCmd,devId, hvMonUppernum1, battGroupNum
|
*/
|
export const searchParalleParam = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchParalleParam",
|
params,
|
});
|
};
|
/**
|
* 9141设置参数
|
*/
|
export const updateParalleParam = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateParalleParam",
|
data,
|
});
|
};
|
/**
|
* 9141 控制启停
|
*/
|
export const controllerParalle = (params) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/controllerParalle",
|
params,
|
});
|
};
|
|
/**
|
* 读取并联电源9149放电参数
|
* {devId, opCmd, paramtype}
|
*/
|
export const searchParalleParam9149 = (params) => {
|
return axios({
|
method: "GET",
|
url: "fbs9149Setparam/searchParalleParam9149",
|
params,
|
});
|
};
|
/**
|
* 设置并联电源9149放电参数
|
* 对象数组 参数
|
*/
|
export const updateParalleParam9149 = (data) => {
|
return axios({
|
method: "POST",
|
url: "fbs9149Setparam/updateParalleParam9149",
|
data,
|
});
|
};
|
|
/**
|
* 控制并联电源9149充放电停止
|
* {battGroupNums, devId, opCmd, testCmd}
|
*/
|
export const controllerParalle9149 = (params) => {
|
return axios({
|
method: "GET",
|
url: "fbs9149Setparam/controllerParalle9149",
|
params,
|
});
|
};
|
|
/**
|
* 启动LD6设备
|
* @param devId 设备ID
|
* @return {AxiosPromise}
|
*/
|
export const startLd6 = (devId) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateLD6StartTest",
|
params: {
|
devId,
|
},
|
});
|
};
|
|
/**
|
* 停止LD6设备
|
* @param devId 设备ID
|
* @return {AxiosPromise}
|
*/
|
export const stopLd6 = (devId) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateLD6StopTest",
|
params: {
|
devId,
|
},
|
});
|
};
|
|
/**
|
* 二次放电申请
|
* @param {*} data 放电参数加 申请原因
|
* @returns
|
*/
|
export const addWorkMain = (data) => {
|
return axios({
|
method: "POST",
|
url: "paramTemp/addTmpWorkMain",
|
data,
|
});
|
};
|
|
/**
|
* 查询二次放电参数
|
* @param {*} battGroupId
|
* @returns
|
*/
|
export const searchTemp = (battGroupId) => {
|
return axios({
|
method: "GET",
|
url: "paramTemp/searchTemp",
|
params: { battGroupId },
|
});
|
};
|
|
/**
|
* 读取放电参数
|
* @param devId 设备ID
|
* @param opCmd 读取命令
|
* @return {AxiosPromise}
|
*/
|
export const get9612Params = (devId, opCmd) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/searchFBS9612Param",
|
params: {
|
devId,
|
opCmd,
|
},
|
});
|
};
|
|
/**
|
* 设置放电参数
|
* @param data 放电参数
|
* @return {AxiosPromise}
|
*/
|
export const set9612Params = (data) => {
|
return axios({
|
method: "POST",
|
url: "Fbs9100_setparamAction/updateFBS9612Param",
|
data,
|
});
|
};
|
|
/**
|
* 9162设备启停控制<br/>
|
* opCmd=81,testType=37放电测试<br/>
|
* opCmd=81,testType=50内阻测试<br/>
|
* opCmd=83,testType=0内阻测试<br/>
|
* @param devId 设备ID
|
* @param opCmd 启停命令
|
* @param testType 测试类型
|
* @return {AxiosPromise}
|
*/
|
export const dev9612Control = (devId, opCmd, testType) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/controllerFBS9612",
|
params: {
|
devId,
|
opCmd,
|
testType,
|
},
|
});
|
};
|
|
/**
|
* 更新设备的时间
|
* @param devId 设备ID
|
* @param syncTime 更新时间
|
* @return {AxiosPromise}
|
*/
|
export const updateDevTimeApi = (devId, syncTime) => {
|
return axios({
|
method: "GET",
|
url: "Fbs9100_setparamAction/update61850SyncTime",
|
params: {
|
devId,
|
syncTime,
|
},
|
});
|
};
|
|
/**
|
* 6159开关控制
|
* @param devId swtichName swtichState
|
* @return {AxiosPromise}
|
*/
|
export const setDev6159Swtich = (devId, swtichName, swtichState) => {
|
return axios({
|
method: "GET",
|
url: "dev6159Param/setDev6159Swtich",
|
params: {
|
devId,
|
swtichName,
|
swtichState,
|
},
|
});
|
};
|
/**
|
* 整流模块控制
|
* @param devId ctlNum ctlState
|
* @return {AxiosPromise}
|
*/
|
export const setDev6159RectifModel = (devId, ctlNum, ctlState) => {
|
return axios({
|
method: "GET",
|
url: "dev6159Param/setDev6159RectifModel",
|
params: {
|
devId,
|
ctlNum,
|
ctlState,
|
},
|
});
|
};
|
|
/**
|
* 读取6159交流配电参数
|
* @param devId
|
* @return {AxiosPromise}
|
*/
|
export const getDev6159ACParam = (devId) => {
|
return axios({
|
method: "GET",
|
url: "dev6159Param/getDev6159ACParam",
|
params: {
|
devId
|
},
|
});
|
};
|
|
/**
|
* 设置6159交流配电参数
|
* @param {}
|
* @return {AxiosPromise}
|
*/
|
export const setDev6159ACParam = (data) => {
|
return axios({
|
method: "POST",
|
url: "dev6159Param/setDev6159ACParam",
|
data
|
});
|
};
|
|
|
/**
|
* 读取6159直流配电参数
|
* @param devId
|
* @return {AxiosPromise}
|
*/
|
export const getDev6159DCParam = (devId) => {
|
return axios({
|
method: "GET",
|
url: "dev6159Param/getDev6159DCParam",
|
params: {
|
devId
|
},
|
});
|
};
|
|
/**
|
* 设置6159交流配电参数
|
* @param {}
|
* @return {AxiosPromise}
|
*/
|
export const setDev6159DCParam = (data) => {
|
return axios({
|
method: "POST",
|
url: "dev6159Param/setDev6159DCParam",
|
data
|
});
|
};
|
|
|
/**
|
* 读取6159整流模块参数
|
* @param devId
|
* @return {AxiosPromise}
|
*/
|
export const getDev6159RectifierParam = (devId) => {
|
return axios({
|
method: "GET",
|
url: "dev6159Param/getDev6159RectifierParam",
|
params: {
|
devId
|
},
|
});
|
};
|
|
/**
|
* 设置6159整流模块参数
|
* @param {}
|
* @return {AxiosPromise}
|
*/
|
export const setDev6159RectifierParam = (data) => {
|
return axios({
|
method: "POST",
|
url: "dev6159Param/setDev6159RectifierParam",
|
data
|
});
|
};
|