Files
jczxw-java/src/api/gis/gisApi.js
2022-02-07 18:04:18 +08:00

85 lines
2.3 KiB
JavaScript

import axios from 'axios';
const getLakePlace = function (data) { // 专项湖库
return axios.post("/lakeLibrary/lakeLibrarySpecial/gis", data)
}
const getLakePlaceInnerCity = function (data) { // 专项湖库
return axios.post("/lakeLibrary/lakeLibraryInnerCity/gis", data)
}
const getAirGis = function (data) {
return axios.get(`/ambientAir/ambientAir/gis/place?regionLevel=${data.regionLevel}&year=${data.year}`)
}
//lakeLibrary/lakeSpecialDict/getYear
//lakeLibrary/lakeSpecialDict/getYear
const getLakeYear = function () { // 专项湖库年份
return axios.get("/lakeLibrary/lakeSpecialDict/getYear")
}
// lakeLibrary/lakeCityDict/getYear
const getInnerLakeYear = function () { // 城市内湖年份
return axios.get("/lakeLibrary/lakeCityDict/getYear")
}
const autonomous = function (data) { // 自治区水功能区数据查询
return axios.post("/water/visualiz/autonomous", data)
}
const national = function (data) { // 国家水功能区数据查询
return axios.post("/water/visualiz/national", data)
}
const river = function (data) { // 江河水质数据查询
return axios.post("/water/visualiz/river", data)
}
const waterStation = function (data) { // 水站数据查询
return axios.post("/water/visualiz/waterStation", data)
}
const waterCity = function (data) { // 城市
return axios.post("/drinkingWater/drinkingWater/cityGis", data)
}
const waterCounty = function (data) { // 区县
return axios.post("/drinkingWater/drinkingWater/countyGis", data)
}
const waterVillage = function (data) { // 农村
return axios.post("/drinkingWaterVillage/drinkingWaterVillage/villageGis", data)
}
const updateRiverCorrectLocation = function (data) { //
return axios.post("/water/visualiz/updateRiverPointLocation", data)
}
const updateLakeCorrectLocation = function (data) { //
return axios.post("/water/visualiz/updateLakePointLocation", data)
}
const updateDrinkCorrectLocation = function (data) { //
return axios.post("/water/visualiz/updateDrinkPointLocation", data)
}
export {
getLakePlace,
getAirGis,
getLakePlaceInnerCity,
getLakeYear,
getInnerLakeYear,
autonomous, //自治区水功能区数据查询
national,
river,
waterStation,
waterCity,
waterCounty,
waterVillage,
updateRiverCorrectLocation,
updateLakeCorrectLocation,
updateDrinkCorrectLocation
}