/** * 闸井监测接口 */ 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: { ...data, monitorState: data.monitorState ? data.monitorState : '1,2,3' }, }) } // 列表-不分页 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 getTypeListByWellId(data: any) { return request({ url: '/system/busLedger/getTypeListByWellId', method: 'post', data, }) } // 全生命周期记录 export function getLifecycleRecord(data: any) { return request({ url: '/monitor/well/lifecycleRecord', method: 'post', data, }) } // 全生命周期记录导出 export function exportLifecycleRecord(data: any) { return request({ url: '/monitor/well/lifecycleRecordExp', method: 'get', params: { ...data, }, responseType: 'blob', }) } // 监控设备维护记录 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, }, }) } // 获取燃气浓度等数据 export function getGasData(data: any) { return request({ url: '/monitor/well/latestValue', method: 'post', data, }) } // 根据闸井id获取设备 export function getDeviceById(id: string) { return request({ url: '/system/busDevice/getListByWellId', method: 'post', data: { id }, }) }