Newer
Older
DH_Apicture / src / api / MonitorAssetsOnMap.js
@ZZJ ZZJ 6 days ago 8 KB 泵站详情
import request from '@/utils/request';
// 查詢天氣
export function getweather(forecastType, monitorTime) {
  return request({
    url: `/business/weather/predict?forecastType=${forecastType}&monitorTime=${monitorTime}`,
    method: 'get',
  });
}

// 1.查询基础点位数据
export function getBaseListPoint(query) {
  return request({
    url: '/business/dataSiteRelation/getBaseListPoint',
    method: 'get',
    params: query,
  });
}

//diversion_well_info 分流井
// drainage_info 排水户
// port_channel_info 港渠
// region_info 分区信息
// sewage_factory_info 污水处理厂
// storage_tank_info  调蓄池
// water_gate_info  水闸

//点位查看绑定站点
export function getRELAList(query) {
  return request({
    url: '/business/dataSiteRelation/list',
    method: 'get',
    params: query,
  });
}

// id
// point_type
// 站点编号,名称,因子列表
// stCode,stName,stConfigs,stConfigsName

// 查询出绑定站点数据
export function getEchart(query) {
  return request({
    url: '/business/dataSiteRelation/getEchart',
    method: 'get',
    params: query,
  });
}
// stCode  gens

// 点位信息查看绑定视频
export function getdataCamera(query) {
  return request({
    url: '/business/dataCameraRelation/list',
    method: 'get',
    params: query,
  });
}
//   dataId,cameraName

// 查询点位详情
export function getBaseDetail(query) {
  return request({
    url: '/business/dataSiteRelation/getBaseDetail',
    method: 'get',
    params: query,
  });
}

// dataID   数据id
// dataCode  例如 lake_info

// 查询基础数据-水系汇水分区列表
export function listwaterRegionInfo(query) {
  return request({
    url: '/business/waterRegionInfo/list',
    method: 'get',
    params: query,
  });
}
// 查询因子列表 get  stCode 站点编号
export function getDetailByCode(query) {
  return request({
    url: '/business/rtuSiteMonitor/getDetailByCode',
    method: 'get',
    params: query,
  });
}

// 查询站点类型 get  monitorTargetType  站点类型
export function GetmonitorTargetType(query) {
  return request({
    url: '/business/monitorTargetType',
    method: 'get',
    params: query,
  });
}

// 降雨过程线echart
export function GettHourDataechart(query) {
  return request({
    url: '/rainfall/monitorUnitHourData/getEchart',
    method: 'get',
    params: query,
  });
}

// 最大降雨统计
export function getMaxRain(query) {
  return request({
    url: '/rainfall/monitorUnitSiteInfo/getMaxRain',
    method: 'get',
    params: query,
  });
}

// 站点详情,降雨段+最大降雨
export function getRainDetail(query) {
  return request({
    url: '/rainfall/monitorUnitSiteInfo/getRainDetail',
    method: 'get',
    params: query,
  });
}

export const pipelineWarnConfiglist = data => {
  return request({
    url: `/business/pipelineWarnConfig/list`,
    method: 'get',
    params: data,
  });
};

export const getConfigsiteNo = data => {
  return request({
    url: `/business/plcHomePage/getConfig`,
    method: 'get',
    params: data,
  });
};

// 下游分析
export function downStreamAnalyse(query) {
  return request({
    url: `/business/pipelineInfo/downStreamAnalyse/${query.startPointNumber}`,
    method: 'get',
    params: query,
  });
}

// 上游分析
export function upStreamAnalyse(query) {
  return request({
    url: `/business/pipelineInfo/upStreamAnalyse/${query.endPointNumber}`,
    // url: `/newfiber-project-dhgx/pipelineInfo/upStreamAnalyse/${query.endPointNumber}`,
    method: 'get',
    params: query,
  });
}

// 连通性分析
export function connectAnalyse(query) {
  return request({
    url: `/business/pipelineInfo/connectAnalyse`,
    method: 'get',
    params: query,
  });
}

// 监测资产通用弹窗
export function dataSiteRelationGetMenu(query) {
  return request({
    url: `/business/dataSiteRelation/getMenu`,
    method: 'get',
    params: query,
  });
}
// 大屏通用弹窗
export function drainageDispatchGetMenu(query) {
  return request({
    url: `/business/drainageDispatch/getMenu`,
    method: 'get',
    params: query,
  });
}
// 汇水分区查询关联7类数据  get  id
export function getWaterRegionData(query) {
  return request({
    url: `/business/dataSiteRelation/getWaterRegionData`,
    method: 'get',
    params: query,
  });
}

// 污水分区,查询污水泵站,污水厂数据  get  id
export function getRegionData(query) {
  return request({
    url: `/business/dataSiteRelation/getRegionData`,
    method: 'get',
    params: query,
  });
}

// 湖泊,查询汇水分区绑定,泵站,水闸,分流井
export function getReservoirData(query) {
  return request({
    url: `/business/dataSiteRelation/getReservoirData`,
    method: 'get',
    params: query,
  });
}

// 湖泊,查询绑定的水位/水质站点列表
export function getReservoirSiteList(query) {
  return request({
    url: `/business/dataSiteRelation/getReservoirSiteList`,
    method: 'get',
    params: query,
  });
}

export function getSectionByWellCode(code) {
  return request({
    url: `/business/pipelineInfo/getSectionByWellCode/${code}`,
    method: 'get',
  });
}

export function getSectionByWellCodeDetail(params) {
  return request({
    url: `/business/drainageMap/getSectionByWellCode/wellCode`,
    method: 'get',
    params,
  });
}
// 堤防防汛备料全部数据
export function infoListallDFFXBL(params) {
  return request({
    url: '/business/managementDikeGood/list',
    method: 'get',
    params,
  });
}
// 分页查询防汛仓库和备料
export function managementWarehouseGoodPage(params) {
  return request({
    url: '/business/managementWarehouseGood/page',
    method: 'get',
    params: {
      ...params,
    },
  });
}
// 排口整治列表
export function outletRegulateList(query) {
  return request({
    url: '/business/outletRegulate/list',
    method: 'get',
    params: query,
  });
}
// 排口监测列表
export function outletMonitorList(query) {
  return request({
    url: '/business/outletMonitor/list',
    method: 'get',
    params: query,
  });
}
// 渍水监测降雨历史
export function drainageDispatchRainAnalysisByZsjcd(query) {
  return request({
    url: '/business/drainageDispatch/rainAnalysisByZsjcd',
    method: 'get',
    params: query,
  });
}
//管网监测历史经验
export function drainageDispatchRainAnalysisByGwjcd(query) {
  return request({
    url: '/business/drainageDispatch/rainAnalysisByGwjcd',
    method: 'get',
    params: query,
  });
}
//泵站监测历史经验
export function drainageDispatchRainAnalysisByBz(query) {
  return request({
    url: '/business/drainageDispatch/rainAnalysisByBz',
    method: 'get',
    params: query,
  });
}
//港渠列表
export function getPortChannelLengthSum(params) {
  return request({
    url: '/business/drainageDispatch/getPortChannelLengthSum',
    method: 'get',
    params,
  });
}
// 河湖水文历史
export function hisHydrologyList(query) {
  return request({
    url: '/business/hisHydrology/list',
    method: 'get',
    params: query,
  });
}
export function getByPipeLineCode(query) {
  return request({
    url: `/business/pipelineInfo/getByPipeLineCode`,
    method: 'get',
    params: query,
  });
}

export function selectByPointNumber(query) {
  return request({
    url: `/business/pipelinePoint/selectByPointNumber`,
    method: 'get',
    params: query,
  });
}
//水质信息
export function getWaterQualityEchart(code) {
  return request({
    url: `/business/dataSiteRelation/getWaterQualityEchart/${code}`,
    method: 'get',
  });
}
// 历史水质
export function riverQualityGetHistory(query) {
  return request({
    url: `/business/riverQuality/getHistory`,
    method: 'get',
    params: query,
  });
}

// 污水
export function SWgetPumpDetail(query) {
  return request({
    url: '/business/sewagePumpStationInfo/getPumpDetail',
    method: 'get',
    params: query,
  });
}

// 雨水
export function RaingetPumpDetail(query) {
  return request({
    url: '/business/rainWaterPumpStationInfo/getPumpDetail',
    method: 'get',
    params: query,
  });
}

// 雨水Echarts
export function rainEcharts(query) {
  return request({
    url: '/business/rainWaterPumpStationInfo/getPumpEchart',
    method: 'get',
    params: query,
  });
}

// 污水echarts
export function sewageEcharts(query) {
  return request({
    url: '/business/sewagePumpStationInfo/getPumpEchart',
    method: 'get',
    params: query,
  });
}