Newer
Older
qd_cnooc_front / src / api / overview.js
[wangxitong] on 31 May 2022 1 KB 新增管线
/**
 * 井总览模块接口
 */
import request from '@/utils/request'

// 首页
export function getWatchStatistic() {
  return request({
    url: 'waterStatistic/overview',
    method: 'get'
  })
}
export function waterMeterCount() {
  return request({
    url: 'waterMeterData/count',
    method: 'get'
  })
}

// 查询一级分区各区用水量
export function countByFirstArea(params) {
  return request({
    url: 'waterStatistic/countByFirstArea',
    method: 'get',
    params
  })
}

// 查询一级分区7日用水量
export function countByDayFirst(params) {
  return request({
    url: 'waterStatistic/countByDayFirst',
    method: 'get',
    params
  })
}

// 查询二级分区各区用水量
export function countBySecondArea(params) {
  return request({
    url: 'waterStatistic/countBySecondArea',
    method: 'get',
    params
  })
}

// 查询二级分区水表告警
export function alarmBySecondArea(params) {
  return request({
    url: 'waterStatistic/alarmBySecondArea',
    method: 'get',
    params
  })
}

// 设备7日报警趋势
export function alarmCountByDay(params) {
  return request({
    url: 'waterStatistic/alarmCountByDay',
    method: 'get',
    params
  })
}

// 井查询
export function getWellList(params) {
  return request({
    url: 'overview/wellList',
    method: 'get',
    params
  })
}
// 获取井详情
export function getWellInfo(id) {
  return request({
    url: 'overview/wellInfo',
    method: 'get',
    params: {
      id: id
    }
  })
}
// 获取报警列表
export function getAlarmsNow(params) {
  return request({
    url: 'overview/alarmNow',
    method: 'get',
    params
  })
}

// 某井报警信息
export function getWellAlarms(id) {
  return request({
    url: 'overview/alarmsByWell',
    method: 'get',
    params: {
      id: id
    }
  })
}

// 总览marker
export function getMapping(devType, keywords) {
  return request({
    url: 'overview/wellMapping',
    method: 'get',
    params: {
      keywords: keywords,
      devType: devType
    }
  })
}