he wei
2024-09-21 70edda3b00f2528a473c28ec5a50b739ed160f0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
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
    }
  });
}