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
|
})
|
}
|