diff --git a/src/api/smartAnalysis.js b/src/api/smartAnalysis.js index 9590218..9afd8a2 100644 --- a/src/api/smartAnalysis.js +++ b/src/api/smartAnalysis.js @@ -60,3 +60,70 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 内涝报警查询 +export function getWaterAlarm(params) { + return request({ + url: 'level/alarm/list', + method: 'get', + params + }) +} +// 燃气泄漏报警查询 +export function getGasAlarm(params) { + return request({ + url: 'gas/alarm/list', + method: 'get', + params + }) +} +// 热力泄漏报警查询 +export function getHotAlarm(params) { + return request({ + url: 'hot/alarm/list', + method: 'get', + params + }) +} +// 内涝计算 +export function getWaterCompute(params) { + return request({ + url: 'smartAnalysis/waterlogging/detail', + method: 'get', + params + }) +} +// 燃气泄漏计算 +export function getGasCompute(params) { + return request({ + url: 'smartAnalysis/gasLeakage/detail', + method: 'get', + params + }) +} +// 热力泄漏计算 +export function getHotCompute(params) { + return request({ + url: 'smartAnalysis/hotLeakage/detail', + method: 'get', + params + }) +} + +// 某井上游阀门 +export function getValvesByWell(params) { + return request({ + url: 'smartAnalysis/valvesByWell', + method: 'get', + params + }) +} + +// 某井关阀影响区域 +export function getAffectAreaByWell(params) { + return request({ + url: 'smartAnalysis/valve/affectAreas', + method: 'get', + params + }) +}