Newer
Older
KaiFengPC / src / api / dataAnalysis / syntherticData.js
@鲁yixuan 鲁yixuan on 19 Aug 3 KB updata
import request from '@/utils/request';

// 数据统计-动态表头
export function dataAnalysisHead(query) {
  return request({
    url: '/business/siteHistoryMonitor/dataAnalysis/heads',
    method: 'get',
    params: query,
  });
}
// 数据统计-表格数据
export function dataAnalysisBody(query) {
  return request({
    url: '/business/siteHistoryMonitor/dataAnalysis',
    method: 'get',
    params: query,
  });
}
// 图形报表分析-echarts
export function graphicReport(query) {
  return request({
    url: '/business/siteHistoryMonitor/graphicReport',
    method: 'get',
    params: query,
  });
}
// 获取每种监测类型对应的站点类型和建设方式对应的数量
export function getSiteInfoCountZH(query) {
  return request({
    url: '/business/rtuSiteInfo/getSiteInfoCount',
    method: 'get',
    params: query,
  });
}
// 获取所有站点设备
export function getStationList(query) {
  return request({
    url: '/business/rtuSiteInfo/list',
    method: 'get',
    params: query,
  });
}
// 获取站点详情数据
export function getStationDetail(id) {
  return request({
    url: '/business/rtuSiteInfo/' + id,
    method: 'get',
  });
}
// 获取站点详情数据 扩展
export function getStationDetailExtend(stCode) {
  return request({
    url: '/business/rtuSiteInfo/extend/' + stCode,
    method: 'get',
  });
}
// 各类型站点状态统计
export function rtuSiteTypeStatusCount(query) {
  return request({
    url: '/business/rtuSiteInfo/rtuSiteTypeStatusCount',
    method: 'get',
    params: query,
  });
}
// 站点最新一条数据记录
export function realtimeDataLatest(stCode) {
  return request({
    url: '/business/rtuSiteMonitor/realtimeData/' + stCode,
    method: 'get',
  });
}
// 综合分析--趋势统计
export function tendencyStatistics(query) {
  return request({
    url: '/business/siteHistoryMonitor/tendencyStatistics',
    method: 'get',
    params: query,
  });
}
// 综合分析--数据分析
export function getDataAnalyse(query) {
  return request({
    url: '/business/siteHistoryMonitor/dataAnalyse',
    method: 'get',
    params: query,
  });
}
// 综合分析--数据分析-决策分析
export function decisionSuggest(query) {
  return request({
    url: '/business/siteHistoryMonitor/decisionSuggest',
    method: 'get',
    params: query,
  });
}
// 综合分析--报警分析
export function getAlarmAnalysis(query) {
  return request({
    url: '/business/rtuWarnRecordRealtime/alarmAnalysis',
    method: 'get',
    params: query,
  });
}
// 搜索站点对应的指定监测数据echarts数据(公共接口)
export function monitorPropertyEchart(query) {
  return request({
    url: '/business/siteHistoryMonitor/monitorPropertyGraphicReport',
    method: 'get',
    params: query,
  });
}
// 故障及离线设备分析-历次故障分析
export function stationFaultTime(query) {
  return request({
    url: '/business/rtuFaultTimeSectionRealtime/page',
    method: 'get',
    params: query,
  });
}
// 故障及离线设备分析-问题建议
export function stationFaultSuggest(stCode) {
  return request({
    url: '/business/rtuFaultTimeSectionHistory/problemSuggest/' + stCode,
    method: 'get',
  });
}
// 站点对比分析-监测项
export function monitorPropertyList(query) {
  return request({
    url: '/business/rtuSiteInfo/tree',
    method: 'get',
    params: query,
  });
}
// 站点对比分析-对比数据
export function monitorPropertyGraphicCompare(data) {
  return request({
    url: '/business/siteHistoryMonitor/monitorPropertyGraphicCompare',
    method: 'post',
    data: data,
  });
}