Newer
Older
smartwell_front / src / api / home / well / well.ts
/**
 * 闸井监测接口
 */
import request from '@/api/index'

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

// 查询监控数据
export function getMonitorData(data: any) {
  return request({
    url: '/monitor/well/watchDataByWell',
    method: 'post',
    data,
  })
}

// 全生命周期记录
export function getLifecycleRecord(data: any) {
  return request({
    url: '/monitor/well/lifecycleRecord',
    method: 'post',
    data,
  })
}

// 监控设备维护记录
export function getRepairLog(id: string) {
  return request({
    url: '/monitor/well/repairLog',
    method: 'post',
    data: {
      wellId: id,
    },
  })
}
// 编辑闸井
export function editWell(data: any) {
  return request({
    url: '/system/busLedger/addRemark',
    method: 'post',
    data: {
      ...data,
      type: '1',
    },
  })
}
// 详情
export function getWellDetail(id: string) {
  return request({
    url: '/system/busLedger/detail',
    method: 'post',
    data: {
      id,
    },
  })
}