gis模块
This commit is contained in:
68
src/api/gis/gisApi.js
Normal file
68
src/api/gis/gisApi.js
Normal file
@@ -0,0 +1,68 @@
|
||||
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)
|
||||
}
|
||||
|
||||
export {
|
||||
getLakePlace,
|
||||
getAirGis,
|
||||
getLakePlaceInnerCity,
|
||||
getLakeYear,
|
||||
getInnerLakeYear,
|
||||
autonomous, //自治区水功能区数据查询
|
||||
national,
|
||||
river,
|
||||
waterStation,
|
||||
waterCity,
|
||||
waterCounty,
|
||||
waterVillage
|
||||
}
|
||||
Reference in New Issue
Block a user