elkers
2025-01-16 0b62eca817d6c40c188dc72c3034835a61a30a35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
import { publicRequest } from '@/utils/request'
 
export default function dma() {
    return {
        //获取压力-流量-液位-监测数据
        searchMonitor: (data) => {
            return publicRequest({
                url: '/statistics/monitor',
                method: 'post',
                data
            })
        },
        //获取夜间流量分析-监测数据
        searchStatistic: (data) => {
            return publicRequest({
                url: '/statistics/flowAnalysis',
                method: 'post',
                data
            })
        },
        //获取区域
        getArea: () => {
            return publicRequest({
                url: '/waterArea/getParentArea',
                method: 'get',
            })
        },
        //首页分区用水数据统计
        headWaterArea: (data) => {
            return publicRequest({
                url: '/statistics/headWaterArea',
                method: 'post',
                data
            });
        },
        //实时报警
        alarm: (data) => {
            return publicRequest({
                url: '/alarmHistory/search',
                method: 'post',
                data
            });
        },
    }
}