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 }); };