/** * 动力管线 */ import request from '@/utils/request' // 用水量、噪声统计数据 export function gasStatistic() { return request({ url: 'gasStatistic/overview', method: 'get' }) } // 气体流量计数量 // export function deviceCount(params) { // return request({ // url: 'device/count/15', // method: 'get', // params // }) // } // 气体流量计数量 export function deviceCount(type) { return request({ url: 'device/count/' + type, method: 'get' }) } // 统计当前报警数 export function alarmNowStatic(params) { return request({ url: 'statics/alarmsNow', method: 'get', params }) } // 查询二级分区各区用气量 export function countBySecondArea(params) { return request({ url: 'gasStatistic/countBySecondArea', method: 'get', params }) } // 查询二级分区7日用气量 export function countByDaySecond(params) { return request({ url: 'gasStatistic/countByDay', method: 'get', params }) } // 查询二级分区燃气告警 export function gasAlarmBySecondArea(params) { return request({ url: 'dataStatistic/gasAlarmBySecondArea', method: 'get', params }) } // 各设备腐蚀速率统计 export function corrRateByDevice(params) { return request({ url: 'corrode/data/corrRateByDevice', method: 'get', params }) } // 查询二级分区用气对比 export function gasCompareData(params) { return request({ url: 'gasStatistic/gasCompare', method: 'get', params }) } // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ url: 'statics/deviceStaticsByType', method: 'get', params }) } // 查询二级分区气体流量计告警 export function alarmBySecondArea(params) { return request({ url: 'gasStatistic/alarmBySecondArea', method: 'get', params }) } // 用气事记查询 export function getNoteList(type) { return request({ url: '/note/list/' + type, // url: '/note/list', method: 'get' }) } // 用气事记更新 export function updateNoteList(data) { return request({ url: '/note/edit', method: 'post', data }) } // 获取报警列表 export function getAlarmsNow(params) { return request({ url: 'overview/alarmNow', method: 'get', params }) } // 总览marker(真接口) export function getMapping(devType, keywords) { return request({ url: 'overview/wellMapping', method: 'get', params: { keywords: keywords, devType: devType } }) }