Newer
Older
rescue_front / src / api / overview.js
[wangxitong] on 26 Mar 2022 1 KB 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
    }
  })
}

// 车辆

// 车辆定位列表
export function getOverviewList(params) {
  return request({
    url: 'busCarPosition/listPage',
    method: 'get',
    params
  })
}
export function getOverviewAllList(params) {
  return request({
    url: 'busCarPosition/list',
    method: 'get',
    params
  })
}
export function offlineCount(params) {
  return request({
    url: 'busCarPosition/offlineCount',
    method: 'get',
    params
  })
}
export function track(id) {
  return request({
    url: 'busCarPosition/track',
    method: 'get',
    params: {
      carId: id
    }
  })
}
export function trail(params) {
  return request({
    url: 'busCarPosition/trace',
    method: 'get',
    params
  })
}
export function speedLine(params) {
  return request({
    url: 'busCarPosition/speedLine',
    method: 'get',
    params
  })
}