zhouwx
2025-11-11 fc70a46bf84cda4fbe53332f4abd84cf1227fe95
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
import request from '/@/utils/request';
 
export function weatherDataApi() {
    return {
 
        //气象监测数据-折线图
        getWeatherLineChart: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasMonitorData/gasAtmosphere/lineChart`,
                method: 'post',
                data: data
            });
        },
 
        //气象监测数据-分页
        getWeatherLinePage: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasMonitorData/gasAtmosphere/page`,
                method: 'post',
                data: data
            });
        },
 
        //气象历史数据-分页
        getWeatherHistoryPage: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasMonitorData/gasAtmosphere/stats`,
                method: 'post',
                data: data
            });
        },
        //气象极值
        getWeatherExtremum: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/gasMonitorData/gasAtmosphere/extremum`,
                method: 'post',
                data: data
            });
        },
 
 
 
    };
}