Newer
Older
smartwell_front / src / api / overview.js
StephanieGitHub on 4 Jul 2019 697 bytes first commit
/**
 * 闸井总览模块接口
 */
import request from '@/utils/request'
// 闸井查询
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
    }
  })
}