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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
import axios from "axios";
 
/**
 * 查询(61850)最后一次核容放电数据
 * Batttestdata_infAction_searchBattLastHrDataById // 旧
 * num为FBSDeviceId
 * 参数:json={"num":910000119,"BattGroupId":1005129}
 */
export const getLastCapacityTest = (params) => {
  return axios({
    method: "POST",
    url: "Batttestdata_infAction/searchBattLastHrDataById",
    params,
  });
};
/**
 * Batt_param_lowAction_searchAll // 旧
 */
export const searchAll_lowAction = () => {
  return axios({
    method: "GET",
    url: "Batt_param_lowAction/searchAll",
  });
};
/**
 * 添加标准曲线
 * Battmon_testcapAction!add // 旧
 */
export const addStandardLine = (data) => {
  return axios({
    method: "POST",
    url: "Battmon_testcapAction/add",
    data,
  });
};
/**
 * 查询内阻信息
 * Batt_rtdataAction!serchResById // 旧
 */
export const searchBattresdata = (battGroupId) => {
  return axios({
    method: "GET",
    url: "Batt_rtdataAction/serchResById",
    params: {
      battGroupId,
    },
  });
};
/**
 * 获取充放电记录
 * Batttestdata_infAction_searchBattTestInfDataById // 旧
 * 参数:json={"num":910000119,"BattGroupId":1005129}
 * 返回结果说明:
 * test_type==3&&test_starttype==3?核容放电:监测放电
 * test_type==2&&test_starttype=3?核容充电:监测充电
 * test_starttime 开始测试时间
 * test_record_count 后台记录的笔数
 * test_stoptype_reason 停止原因
 */
 
export const searchBattTestData = (params) => {
  return axios({
    method: "POST",
    url: "Batttestdata_infAction/searchBattTestInfDataById",
    params,
  });
};
/**
 * 查询历史数据
 * BatttestdataAction!findhistory // 旧
 * {"battGroupId":1005129,"testRecordCount":"7"}
 */
export const searchHistory = (params) => {
  params.dataNew = params.dataNew || 1000;
  return axios({
    method: "GET",
    url: "BatttestdataAction/findhistory",
    params,
  });
};
 
/**
 * 历史内阻数据查询
 * BattresdataAction!getResInfoByBattGroupId // 旧
 */
export const historyResData = (battGroupId) => {
  return axios({
    method: "GET",
    url: "BattresdataAction/getResInfoByBattGroupId",
    params: {
      battGroupId,
    },
  });
};
/**
 * 查询机房名称 落后单体电压等
 * {pageNum, pageSize}
 * {}
 * BattTest_ResAction!serchByCondition // 旧
 */
export const dataSeachroms = (params, data) => {
  return axios({
    method: "POST",
    url: "battTestData/calcTestData",
    params,
    data,
  });
};
/**
 * 历史数据管理数据删除
 * BattTest_ResAction!delete // 旧
 * {
 *  battGroupId,
 *  num,
 *  testRecordCount,
 *  testType
 * }
 */
export const resActionDelete = (params) => {
  return axios({
    method: "POST",
    url: "battTestData/delete",
    params,
  });
};
/**
 * 查询标准曲线
 * Battmon_testcapAction!serchByCondition // 旧
 */
export const searchStandardLine = (data) => {
  return axios({
    method: "POST",
    url: "Battmon_testcapAction/testCapList",
    data,
  });
};
/**
 * 查询所有的标准曲线
 * {pageNum, pageSize}
 * Battmon_standardcurveAction!serchByCondition // 旧
 */
export const searchStandardLines = (params) => {
  return axios({
    method: "GET",
    url: "battMonStandardCure/page",
    params,
  });
};
/**
 * 查询LD9测试数据列表
 * {battGroupId}
 * Ld9testdata_infAction_ld9action_searchInfList // 旧
 */
export const getLD9TestList = (params) => {
  return axios({
    method: "GET",
    url: "Ld9testdata_infAction/searchInfList",
    params,
  });
};
 
/**
 * 查询LD9 单体测试数据
 * Ld9testdataAction_ld9action_serchByCondition // 旧
 * {"battGroupId":1000061,"testRecordCount":39,"recordNum":3,"testMonNum":1}
 */
export const getLD9Testdata = (params) => {
  return axios({
    method: "GET",
    url: "Ld9testdataAction/serchByCondition",
    params,
  });
};
 
/**
 * 查询LD9测试组端数据
 * Ld9testdatastopAction_ld9action_serchByInfo // 旧
 * {"battGroupId":1000061,"testRecordCount":39,"record_num":3,"testMonNum":1}
 */
export const getLD9GrpTestdata = (params) => {
  return axios({
    method: "GET",
    url: "Ld9testdatastopAction/serchByInfo",
    params,
  });
};
 
/**
 * 查询LD9 一次测试中所有单体的实际容量
 * Ld9testdatastopAction_ld9action_serchByCondition // 旧
 * {"battGroupId":1000061,"testRecordCount":39}
 */
export const getLD9MonCaps = (params) => {
  return axios({
    method: "GET",
    url: "Ld9testdatastopAction/serchByCondition",
    params,
  });
};
/**
 * 查询LD9 一次测试中所有单体的数据
 * Ld9testdataAction_ld9action_serchLD9AllGroupByTestRecordCount  // 旧
 * 参数:{"battGroupId":"1000061","testRecordCount":"14"}
 */
export const getLD9AllTestData = (data) => {
  return axios({
    method: "POST",
    url: "Ld9testdataAction/getLD9AllGroupByTestRecordCount",
    data,
  });
};
/**
 * LD9 上传echart图片
 * Ld9testdataAction_ld9action_filePicUpload // 旧
 * 参数:json={"battGroupId":"1000061","testRecordCount":"14", "monNum": "1", "mapPic": {"组端电压折线图.png": ""}}
 */
export const uploadLD9Pic = (data) => {
  return axios({
    method: "POST",
    url: "Ld9testdataAction/filePicUpload",
    data,
  });
};
 
/**
 * 历史数据查看测试参数
 * {battGroupId, testRecordCount}
 */
export const getTestParam = (params) => {
  return axios({
    method: "GET",
    url: "BattTestparamController/searchBattTestparam",
    params,
  });
};
 
/**
 * 获取电源主合和备合
 * @param pageCurr 当前页
 * @param pageSize 每页数量
 * @param powerDeviceId   设备id
 * @returns {AxiosPromise}
 */
export const getEventById = (pageCurr, pageSize, powerDeviceId) => {
  return axios({
    method: "GET",
    url: "pwrdevEvent/getEventById",
    params: {
      pageCurr,
      pageSize,
      powerDeviceId,
    },
  });
};
 
/**
 * 导出数据
 * @param data 生成导出数据的条件
 * @return {AxiosPromise}
 */
export const exportReport = (data) => {
  return axios({
    method: "GET",
    url: "poIWordExport",
    responseType: "blob",
    params: {
      json: JSON.stringify(data),
    },
  });
};
 
/**
 * 清洗数据
 * @param battGroupId 电池组id
 * @param testRecordCount 测试记录
 * @return {AxiosPromise}
 */
export const clearDirtyDataAPI = (battGroupId, testRecordCount) => {
  return axios({
    method: "GET",
    url: "BatttestdataAction/clearTdata",
    params: {
      battGroupId,
      testRecordCount,
    },
  });
};
 
/**
 * 恢复数据
 * @param battGroupId 电池组id
 * @param testRecordCount 测试记录
 * @return {AxiosPromise}
 */
export const recoveryDirtyDataAPI = (battGroupId, testRecordCount) => {
  return axios({
    method: "GET",
    url: "BatttestdataAction/recoverTdata",
    params: {
      battGroupId,
      testRecordCount,
    },
  });
};