whyczyk
2022-05-05 5a087f3a8f6db1f6344dc4a79af2e4c85d27cf1b
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
import axios from "@/assets/js/axios";
 
/**
 * 查询站点名  带stationId fbsdeviceId (含包机组过滤)
 * stationName1
 * stationName2
 * stationName5
 * BattInfAction!serchAllStationName   // 旧
 */
export const getAllStations = (params) => {
    return axios({
        method: 'GET',
        url: 'battInf/searchAllStationName',
        params
    })
}
/**
 * 根据机房id获取电池信息 机房下的电池组列表
 * stationId
 * BattInfAction!serchAllBattinf // 旧
 */
export const getBattList = (stationId) => {
    return axios({
        method: "GET",
        url: "battInf/findBattInfByStationId",
        params: {
            stationId
        }
    });
}
/**
 * 根据电池组ID查询电池组信息
 * BattInfAction!findByBattGroupId  // 旧
 * @returns {AxiosPromise}
 */
export const getBattGroupInfo = (battGroupId) => {
    return axios({
        method: 'GET',
        url: 'battInf/findByBattGroupId',
        params: {
            battGroupId
        }
    });
 
}
/**
 * 查询电池告警参数
 * Dev_paramAction!serchParamById // 旧
 * {devId}
 */
export const realTimeAlarm = (params) => {
    return axios({
        method: "GET",
        url: "Dev_paramAction/serchParamById",
        params
    })
}
/**
 * 根据设备id查询设备当前的开关状态
 * {devId}
 * Fbs9100_stateAction_action_serchContactorState // 旧
 */
export const realTimePowerOff = (params) => {
    return axios({
        method: "GET",
        url: "Fbs9100_stateAction/serchContactorState",
        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
        }
    })
}
/**
 * 查询历史实时数据
 * JhStateAction_action_serchByCondition // 旧
 * {devId}
 */
export const JhStateActionSerchByCondition = (params) => {
    // 查询后台
    return axios({
        method: "GET",
        url: "JhStateAction/serchByCondition",
        params
    });
}
 
/**
 * Batt_param_lowAction_searchAll // 旧
 */
export const searchAll_lowAction = () => {
    return axios({
        method: "GET",
        url: "Batt_param_lowAction/searchAll"
    });
}
 
/**
 * 查询内阻信息 
 * 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
    })
}
 
/**
 * 查询LD9测试数据列表
 * {battGroupId}
 * Ld9testdata_infAction_ld9action_searchInfList // 旧
 */
export const getLD9TestList = (params) => {
    return axios({
        method: "GET",
        url: "Ld9testdata_infAction/searchInfList",
        params
    });
}
 
/**
 * 获取顶部电池组信息
 * 参数:btds.BattGroupId=1005129&btds.test_record_count=7 
 */
export const searchBattTestDataStop = (BattGroupId, count) => {
    return axios({
        method: "post",
        url: "BatttestdatastopAction_findByInfo",
        data: "btds.BattGroupId=" + BattGroupId + "&btds.test_record_count=" + count
    })
}
 
/**
 * 查询历史数据
 * BatttestdataAction!findhistory // 旧
 * {"battGroupId":1005129,"testRecordCount":"7"}
 */
export const searchHistory = (params) => {
    return axios({
        method: "GET",
        url: "BatttestdataAction/findhistory",
        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
    });
}
 
/**
 * 通过设备id查询LD9数据 
 * {devId}
 * LD9_stateAction_ld9action_searchByDevId // 旧
 * @returns 
 */
export const realTimeLd9Data = (params) => {
    return axios({
        method: "GET",
        url: "LD9_stateAction/searchByDevId",
        params
    })
}