import axios from "@/assets/js/axios";
|
import md5 from "js-md5";
|
|
/**
|
* 查询机房信息
|
* 参数:json = {"StationName1":"北京市","StationName2":"市辖区","StationName5":"海淀区"}
|
*/
|
export const searchStation = (params) => {
|
return axios({
|
method: "GET",
|
url: "/battInf/searchAllStationName",
|
params: params
|
});
|
};
|
|
/**
|
* 获取地图的中心坐标并将地图移动该坐标
|
* 无参
|
*/
|
export const searchCoordinateMove = () => {
|
return axios({
|
method: "GET",
|
url: "/positionMapUser/getList",
|
data: null
|
});
|
};
|
|
/**
|
* 查询已添加到地图的机房
|
* 参数:json={"adata":{"alm_cleared_type":0,"alm_id":1},"bplan":{"discharge_reason":3}}
|
*/
|
export const searchMap = () => {
|
return axios({
|
method: "GET",
|
url: "/battMapInformation/searchUserManageStation",
|
});
|
};
|
|
/**
|
* 根据基站信息查询基站的告警和落后信息
|
* 参数: json={"stationId":"@机房编号"}
|
*/
|
export const searchHomeNum = (params) => {
|
return axios({
|
method: "GET",
|
url: "/battMapInformation/multAmout",
|
params: params
|
});
|
};
|
|
/* 设置站点名 无参*/
|
export const addMapHomeList = () => {
|
return axios({
|
method: "post",
|
url: "/battInf/searchNotInBattMapByUid",
|
data: null
|
});
|
};
|
|
/**
|
* 设置地图的中心点坐标和地图显示的等级
|
* @param data 需要设置的参数
|
* @returns {AxiosPromise}
|
*/
|
export const setMapCenterPoint = (data) => {
|
return axios({
|
method: 'POST',
|
url: '/positionMapUser',
|
data: data
|
});
|
};
|
|
/**
|
* 删除地图上的机房
|
* 参数:json={"num":141,"StationId":"42070545",
|
* "StationName":"湖北省-武汉市-BTS-东西湖区-GDXG演示","StationName3":"",
|
* "Address":"湖北省-武汉市-东西湖区-公园南路","longitude":114.252963,"latitude":30.646197,"information":"",
|
* "FBSDeviceId":910000120}
|
*/
|
export const delMapHome = (data) => {
|
return axios({
|
method: "post",
|
url: "/battMapInformation/del",
|
data: data
|
});
|
};
|
|
// 统计核容/停电放电
|
export const searchMapHomeState = () => {
|
return axios({
|
method: "GET",
|
url: '/battMapInformation/findStationState',
|
});
|
};
|
|
/**
|
* 首页地图json数据配置 查询关联地图
|
* 参数: json={"id":id}
|
*/
|
export const getAllMapOutlineAction = () => {
|
return axios({
|
method: "GET",
|
url: "/mapOutline/all",
|
});
|
};
|
|
/**
|
* 根据机房id获取定位信息
|
*
|
* @param {[type]} params 机房id
|
*
|
* @return {[type]} 查询结果
|
*/
|
export const searchAddressById = (params) => {
|
return axios({
|
method: 'GET',
|
url: "/battMapInformation/searchAddressByStationId",
|
params: params
|
});
|
};
|
|
/**
|
* 根据设备id查询配置
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchByDevId = (params) => {
|
return axios({
|
method: 'GET',
|
url: '/station3D/byDeviceId',
|
params: params
|
});
|
};
|
|
/**
|
* 整流器故障 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchAcdcModError = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searchAcdcModError'
|
});
|
};
|
/**
|
* 负载熔断 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchFuse = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searchFuse'
|
});
|
};
|
/**
|
* 停电站 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchPowerOff = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searchPowerOff'
|
});
|
};
|
/**
|
* 核容放电站 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchCheckCapDischarge = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searchCheckCapDischarge'
|
});
|
};
|
/**
|
* 容量不足站 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searchCapAlarm = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searchCapAlarm'
|
});
|
};
|
/**
|
* 电池损坏站 站点列表
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const searCapChange = () => {
|
return axios({
|
method: 'GET',
|
url: 'StationInf/searCapChange'
|
});
|
};
|
|
/**
|
* 获取实时停电放电电池组
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const getJcdisBatt = () => {
|
return axios({
|
method: 'GET',
|
url: 'Batttestdata_infAction/getJcdisBatt'
|
});
|
};
|
|
/**
|
* 获取本年已核容放电电池组
|
* @param data
|
* @returns {AxiosPromise}
|
*/
|
export const getHrYeardisBatt = () => {
|
return axios({
|
method: 'GET',
|
url: 'Batttestdata_infAction/getHrYeardisBatt'
|
});
|
};
|