guoshilong
2023-10-27 2311b03aee9db1bebacdd2ced13c071efda6a011
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import http from '@/http/api.js'
import {
    dataCenterUrl
} from '@/common/setting.js'
 
//24小时雨情
export const rainCodition24 = (params) => {
    //http://10.10.2.192/services/1234567890ABCDEFGHIJKLMN/rain_24_level/api
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/rain/res_cnt/api',
        method: 'GET',
        params
    })
}
//实时水情 --水情列表
export const realTimeWaterCondition = (pageSize, pageNo, params) => {
    //http://10.10.2.192/services/1234567890ABCDEFGHIJKLMN/st_z_last_is_more/api
 
    //http://10.10.2.192/services/1234567890ABCDEFGHIJKLMN/rsvr_z_last/new
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/st_z_last_is_more/api',
        method: 'GET',
        params: {
            ...params,
            pageSize,
            pageNo
        }
    })
}
 
//雨情统计
export const realTimeRainfallCondition = (pageSize, pageNo, params) => {
    //http://10.10.2.192/services/1234567890ABCDEFGHIJKLMN/dws_rain_res_recent_a/api
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/dws_rain_res_recent_a/api',
        method: 'GET',
        params: {
            ...params,
            pageSize,
            pageNo
        }
    })
}
 
//雨量直方图
export const ylzftData = (pageNo, pageSize, params) => {
    //http://10.10.2.192/services/1234567890ABCDEFGHIJKLMN/dws_rain_res_dynamic_intv
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/dws_rain_res_dynamic_intv',
        method: 'GET',
        params: {
            pageNo,
            pageSize,
            ...params
        }
    })
}
 
//获取水库测站数据
export const getStation = (params) => {
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/att_st_base/api',
        method: "GET",
        params
    })
}
 
//水库详情-水情图表数据
export const getSqList = (params) => {
    return http.request({
        url: dataCenterUrl + "/1234567890ABCDEFGHIJKLMN/res_z_detail/param",
        method: "GET",
        params
    })
}
 
/**
 * 实时水情子级列表
 * @param params
 * @param pageNo
 * @param pageSize
 */
export const getSKResZLastChildApi = params => {
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/st_z_last/api',
        method: 'get',
        params
    })
}
 
/**
 * 实时雨情子级
 * @param params
 * @param pageNo
 * @param pageSize
 */
export const getSKDwsRainResRecentAApiChilds = params => {
    return http.request({
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/child/rain_24_details/api',
        method: 'get',
        params
    })
}
 
//获取雨情测站信息
export const getYqStation = params => {
    return http.request({
        //https://sk.hubeishuiyi.cn/services/1234567890ABCDEFGHIJKLMN/att_st_base/api?res_cd=42058350020
        url: dataCenterUrl + '/1234567890ABCDEFGHIJKLMN/att_st_base/api',
        method: 'get',
        params
    })
}
 
 
 
//水库详情-雨情图表数据
export const getYqList = (params) => {
    return http.request({
        url: dataCenterUrl + "/1234567890ABCDEFGHIJKLMN/dws_rain_res_dynamic_intv",
        method: "GET",
        params
    })
}