Newer
Older
smartwell_front / src / api / home / pipeline / pipeline.ts
liyaguang on 25 Dec 1 KB 需求与问题修改
/**
 * 管线监测
 */
import request from '@/api/index'

// 基础列表 -分页
export function getPipelineListPage(data: any) {
  return request({
    url: `/monitor/pipe/listPage?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}

// 基础列表 -不分页
export function getPipelineList(data: any) {
  return request({
    url: '/monitor/pipe/pipeList',
    method: 'post',
    data,
  })
}

// 设备列表 -不分页
export function getPipelineDeviceList(data: any) {
  return request({
    url: '/monitor/pipe/deviceList',
    method: 'post',
    data,
  })
}

// 详情
export function getPipelineDetail(data: any) {
  return request({
    url: '/monitor/pipe/detail',
    method: 'post',
    data,
  })
}

// 监测数据
export function getMonitorData(data: any) {
  return request({
    url: '/monitor/pipe/watchDataByPipe',
    method: 'post',
    data,
  })
}

// 编辑
export function editPipeline(data: any) {
  return request({
    url: '/system/busLedger/addRemark',
    method: 'post',
    data: {
      ...data,
      type: '3',
    },
  })
}
export function getStationDevice(data: any) {
  return request({
    url: '/system/alarmRecords/getDeviceCodeByTagNumber',
    method: 'post',
    data: {
      ...data,
    },
  })
}