Newer
Older
qd_cnooc_front / src / api / gasOverview.js
Stephanie on 15 Nov 2022 3 KB fix<views>: 动力管线首页修改
/**
 * 动力管线
 */
import request from '@/utils/request'

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

// 用水量、噪声统计数据
export function gasStatistic2(deviceType) {
  return request({
    url: 'gas/statistics/used',
    method: 'get',
    params: {
      deviceType: deviceType
    }
  })
}

// 气体用气量走势图
export function gasTrend(params) {
  return request({
    url: '/gas/statistics/trend',
    method: 'get',
    params
  })
}
// 用气量超量报警统计
export function gasAlarmTrend(params) {
  return request({
    url: '/gas/alarm/trend',
    method: 'get',
    params
  })
}
// 各设备气体用气量
export function gasUsed(params) {
  return request({
    url: '/gas/used',
    method: 'get',
    params
  })
}
// 气体泄漏监测结果
export function gasLeakStatus(params) {
  return request({
    url: 'gas/leakage/rate',
    method: 'get',
    params
  })
}

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

// 统计当前报警数
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 gasAlarmBySecondArea(params) {
  return request({
    url: 'gas/alarm/rate',
    method: 'get',
    params
  })
}
// 各设备腐蚀速率统计
export function corrRateByDevice(params) {
  return request({
    url: 'corrode/data/corrRateByDevice',
    method: 'get',
    params
  })
}
// 查询二级分区用气对比
export function gasCompareData(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,
    // url: '/note/list',
    method: 'get'
  })
}

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

// 获取报警列表
export function getAlarmsNow(params) {
  return request({
    url: 'overview/alarmNow',
    method: 'get',
    params
  })
}

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