whyczyk
2021-09-29 19ebfac8e4b4a7c717e8c19a930de7c359a6cfee
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
import axios from "./axios";
 
/* 激活大屏 
{appId:1}
*/
export const screenActiveConfig = (data) => {
  return axios({
    method: "PUT",
    url: "/application/active",
    data: data
  })
}
 
 
/* 查询当前大屏布局数据 
{appId:1}
*/
export const screenAllConfig = (data) => {
  return axios({
    method: "GET",
    url: "/application/allConfig",
    params: data
  })
}
 
/* 查询当前大屏布局数据 
{appId:1}
*/
export const screenSetConfig = (data) => {
  return axios({
    method: "POST",
    url: "/application/config",
    data: data
  })
}
 
/* 放电和 充电电流
 */
export const chargeAnalysis = (data) => {
  return axios({
    method: "GET",
    url: "/batteryAlarm/chargeAnalysis",
    params: data
  })
}
 
/* 整流器
 */
export const rectifier = (data) => {
  return axios({
    method: "GET",
    url: "/powerAlarm/rectifier",
    params: data
  })
}
 
/* 电池组
 */
export const batteryGroup = (data) => {
  return axios({
    method: "GET",
    url: "/powerAlarm/batteryGroup",
    params: data
  })
}
 
/* 电池状态
 */
export const batteryStatus = (data) => {
  return axios({
    method: "GET",
    url: "/battery/status",
    params: data
  })
}
 
/* 电源状态
 */
export const powerAlarmStatus = (data) => {
  return axios({
    method: "GET",
    url: "/powerAlarm/status",
    params: data
  })
}
 
/* 在线电压和组端电压
 */
export const onlinegroupVolAnalysis = (data) => {
  return axios({
    method: "GET",
    url: "/batteryAlarm/onlinegroupVolAnalysis",
    params: data
  })
}
 
/* 交流输入
 */
export const powerAlarmAcInput = (data) => {
  return axios({
    method: "GET",
    url: "/powerAlarm/acInput",
    params: data
  })
}
 
/* 故障
 */
export const powerAlarmError = (data) => {
  return axios({
    method: "GET",
    url: "/powerAlarm/error",
    params: data
  })
}
 
/* BTS设备状态
 */
export const batteryAlarmBtsStatus = (data) => {
  return axios({
    method: "GET",
    url: "/batteryAlarm/btsStatus",
    params: data
  })
}
 
/* 单体容量
 */
export const batteryAlarmMonCapacity = (data) => {
  return axios({
    method: "GET",
    url: "/batteryAlarm/monCapacity",
    params: data
  })
}
 
/**
 * 首页地图json数据配置  查询关联地图
 * 参数: json={"id":id}
 */
export const getAllMapOutlineAction = (data) => {
  return axios({
    method: "post",
    url: "MapOutlineAction!getAll",
    data: 'json=' + JSON.stringify(data),
    asy: 1
  });
};
 
export const searchMapHomeState = () => {
  return axios({
    method: "post",
    url: 'BattMap_informationAction!findStationState',
    data: null,
    asy: 1
  });
}
 
/**
 * 查询已添加到地图的机房
 * 参数:json={"adata":{"alm_cleared_type":0,"alm_id":1},"bplan":{"discharge_reason":3}}
 */
export const searchMap = () => {
  return axios({
    method: "post",
    url: "BattMap_informationAction!searchUserManageStation",
    data: "json=" + JSON.stringify({
      adata: {
        alm_cleared_type: 0,
        alm_id: 1,
      },
      bplan: {
        discharge_reason: 3,
      }
    }),
    asy: 1
  })
}