Newer
Older
qd_cnooc_front / src / api / gasOverview.js
yuexiaosheng on 2 Jun 2022 1 KB fix<main>:修改动力管网首页
/**
 * 动力管线
 */
import request from '@/utils/request'

// 用水量、噪声统计数据
export function gasStatistic() {
  return request({
    url: 'gasStatistic/overview',
    method: 'get'
  })
}

// 气体流量计数量
export function deviceCount(params) {
  return request({
    url: 'device/count/15',
    method: 'get',
    params
  })
}

// 统计当前报警数
export function alarmNowStatic(params) {
  return request({
    url: 'statics/alarmsNow',
    method: 'get',
    params
  })
}

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

// 查询二级分区7日用气量
export function countByDaySecond(params) {
  return request({
    url: 'gasStatistic/countByDay',
    method: 'get',
    params
  })
}
// 查询二级分区各区用水量对比
export function waterCompare(params) {
  return request({
    url: 'gasStatistic/gasCompare',
    method: 'get',
    params
  })
}

// 根据设备类型统计设备数量
export function deviceStaticsByType(params) {
  return request({
    url: 'statics/deviceStaticsByType',
    method: 'get',
    params
  })
}

// 查询二级分区气体流量计告警
export function alarmBySecondArea(params) {
  return request({
    url: 'gasStatistic/alarmBySecondArea',
    method: 'get',
    params
  })
}

// 用气事记查询
export function getNoteList(type) {
  return request({
    url: '/note/list/' + type,
    method: 'get'
  })
}

// 用气事记更新
export function updateNoteList(data) {
  return request({
    url: '/note/edit',
    method: 'post',
    data
  })
}