Newer
Older
smartwell_front_yizhuang / src / api / overview.js
dutingting on 24 Mar 2023 866 bytes 联调-自测-bug修复
/**
 * 窨井总览模块接口
 */
import request from '@/utils/request'
// 窨井查询
// export function getWellList(params) {
//   return request({
//     url: 'overview/wellList',
//     method: 'get',
//     params
//   })
// }
// 窨井查询
export function getWellList(params) {
  return request({
    url: 'overview/wellListDisplay',
    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
    }
  })
}