diff --git a/src/api/ecology/atmosphere/acid.js b/src/api/ecology/atmosphere/acid.js index 0d40941..9ca15d8 100644 --- a/src/api/ecology/atmosphere/acid.js +++ b/src/api/ecology/atmosphere/acid.js @@ -60,9 +60,12 @@ const getColumnOptions = function(column){ const getPlaceGis = function(data){ return axios.get("/acidRain/acidRain/gis/place",{params:data}) } +const getPlaceOptions = (regionLevel) => axios.get("/acidRain/acidRain/placeOptions", {params:{regionLevel}}) + const getTrendChart = function(data){ return axios.post("/acidRain/acidRain/trend/chart",data) } +const getYearOptions = () => axios.get("/acidRain/acidRain/yearOptions") const getPlaceByRegionLevel = function(column){ return axios.get("/acidRain/acidRain/place/region",{params:{column}}) } @@ -90,6 +93,8 @@ export { statisticIon, statisticCounty, getPlaceGis, + getYearOptions, + getPlaceOptions, getTrendChart, getPlaceByRegionLevel } diff --git a/src/views/atmosphere/acid-rain/trend/index.vue b/src/views/atmosphere/acid-rain/trend/index.vue index ad25f0b..8675ec2 100644 --- a/src/views/atmosphere/acid-rain/trend/index.vue +++ b/src/views/atmosphere/acid-rain/trend/index.vue @@ -1,313 +1,243 @@