whyczyk
2022-03-01 f868ff46ef4fb25a01364f3c5d0fe220d32b7ad0
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
import axios from "./axios";
 
/**
 * 查询已添加到地图的机房
 * 参数:json={"adata":{"alm_cleared_type":0,"alm_id":1},"bplan":{"discharge_reason":3}}
 */
export const searchMap = () => {
  return axios({
    method: "GET",
    url: "/battMapInformation/searchUserManageStation",
    asy: 1
  });
};
 
// 统计核容/停电放电
export const searchMapHomeState = () => {
  return axios({
    method: "GET",
    url: '/battMapInformation/findStationState',
    asy: 1
  });
};
 
/**
 * 首页地图json数据配置  查询关联地图
 * 参数: json={"id":id}
 */
export const getAllMapOutlineAction = () => {
  return axios({
    method: "GET",
    url: "/mapOutline/all",
    asy: 1
  });
};
 
/**
 * 根据设备id查询配置
 * @param data
 * @returns {AxiosPromise}
 */
export const searchByDevId = (params) => {
  return axios({
    method: 'GET',
    url: '/station3D/byDeviceId',
    params: params,
    asy: 1
  });
};
 
/**
 * 根据基站信息查询基站的告警和落后信息
 * 参数: json={"stationId":"@机房编号"}
 */
export const searchHomeNum = (params) => {
  return axios({
    method: "GET",
    url: "/battMapInformation/multAmout",
    params: params,
    asy: 1
  });
};