import axios from 'axios';
|
|
|
/**
|
* 实时监控-A059发送指令
|
* {devId, opCmd}
|
* Fbs9100_setparamAction_action_updateA059Cmd // 旧
|
*/
|
export const sendCmd = (params) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_setparamAction/updateA059Cmd',
|
params
|
});
|
}
|
/**
|
* 读取FGCD_A059放电参数
|
* Fbs9100_setparamAction_action_searchA059Param // 旧
|
* {devId, opCmd}
|
*/
|
export const getParams = (params) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_setparamAction/searchA059Param',
|
params
|
});
|
}
|
/**
|
* 设置FGCD_A059放电参数
|
* Fbs9100_setparamAction_action_updateA059Param // 旧
|
*/
|
export const setParams = (data) => {
|
return axios({
|
method: 'POST',
|
url: 'Fbs9100_setparamAction/updateA059Param',
|
data
|
});
|
}
|
/**
|
* 设置FGCD_A059放电参数二期
|
*/
|
export const setParamsII = (data) => {
|
return axios({
|
method: 'POST',
|
url: 'Fbs9100_setparamAction/updateA059ParamPhaseII',
|
data
|
});
|
}
|
|
/**
|
* Fbs9100_setparamAction_action_serchCharHighTmp // 旧
|
* 一体机拓扑图界面添加一个温度报警的设置值 json:{"dev_id":"912000001"}
|
*/
|
export const getTempLimit = (devId) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_setparamAction/serchCharHighTmp',
|
params: {
|
devId
|
}
|
});
|
}
|
|
/**
|
* Fbs9100_stateAction_action_update_dev_res_test_state // 旧
|
* 一体机烟雾报警确认 json:{"dev_id":"805900001"}
|
*/
|
export const confirmAlarm = (devId) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_stateAction/update_dev_res_test_state',
|
params: {
|
devId
|
}
|
});
|
}
|
/**
|
* Fbs9100_stateAction_action_update_dev_alarmstate // 旧
|
* {"devId":"805900001", num:1}
|
* 一体机界面弹出框确认操作 json:{"devId":"805900001", num:1}1确定,0取消
|
*/
|
export const confirmStop = (params) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_stateAction/update_dev_alarmstate',
|
params
|
});
|
}
|
/**
|
* Fbs9100_setparamAction_action_SetNowBatt // 旧
|
*/
|
export const changeDataSource = (devId, battGroupNum, opCmd) => {
|
return axios({
|
method: 'GET',
|
url: 'Fbs9100_setparamAction/SetNowBatt',
|
params: {
|
opCmd: opCmd != undefined ? opCmd : 186,
|
devId,
|
battGroupNum
|
}
|
});
|
}
|
/**
|
* 读取图片
|
* Fgcd_filedownloadAction_action_readA059Pictrue // 旧
|
*/
|
export const searchPicture = (devId) => {
|
return axios({
|
method: "GET",
|
url: 'FGCDFileDownload/readA059Pictrue',
|
params: {
|
devId
|
}
|
});
|
}
|
|
/**
|
* 开始显示图片
|
* Fbs9100_setparamAction_action_StartOrStopShowPic // 旧
|
*/
|
export const startShowPicture = (devId) => {
|
return axios({
|
method: "GET",
|
url: 'Fbs9100_setparamAction/StartOrStopShowPic',
|
params: {
|
opCmd: 188,
|
devId
|
}
|
});
|
}
|
|
/**
|
* 停止显示图片
|
* Fbs9100_setparamAction_action_StartOrStopShowPic // 旧
|
*/
|
export const stopShowPicture = (devId) => {
|
return axios({
|
method: "GET",
|
url: 'Fbs9100_setparamAction/StartOrStopShowPic',
|
params: {
|
opCmd: 190,
|
devId
|
}
|
});
|
}
|
|
/**
|
* 放电中 停电弹窗关闭后 本次放电不再弹窗
|
*/
|
export const insertOrUpdateDialog = (devId, testStartTime) => {
|
return axios({
|
method: "GET",
|
url: 'checkDialog/insertOrUpdateDialog',
|
params: {
|
testStartTime,
|
devId
|
}
|
});
|
}
|