Newer
Older
smartwell_front / src / api / home / station / station.ts
liyaguang on 22 Jan 1 KB 场站视频
/**
 * 场站监测接口
 */
import request from '@/api/index'

// 基础列表
export function getStationListPage(data: any) {
  return request({
    url: `/monitor/station/listPage?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}
// 列表-不分页
export function getStationList(data: any) {
  return request({
    url: '/monitor/station/list',
    method: 'post',
    data,
  })
}
// 编辑
export function editStation(data: any) {
  return request({
    url: '/system/busLedger/addRemark',
    method: 'post',
    data: {
      ...data,
      type: '2',
    },
  })
}
// 获取不同公司的设备(云台)
export function getDeptStation(data: any) {
  return request({
    url: '/monitor/station/treeList',
    method: 'post',
    data,
  })
}
// 获取云台设备监测数据(浓度)
export function getStationDeviceData(data: any) {
  return request({
    url: '/monitor/station/getDeviceData',
    method: 'post',
    data,
  })
}

// 获取设备气体浓度曲线
export function getDeviceGasData(data: any) {
  return request({
    url: '/monitor/station/getDeviceData',
    method: 'post',
    data,
  })
}