From 2496e4448562bb2486453e845a123830db32d223 Mon Sep 17 00:00:00 2001 From: hey7845 Date: Tue, 18 Jan 2022 19:29:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=B8=E9=9B=A8=E4=BB=A3=E7=A0=81=E6=9A=82?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecology/atmosphere/acid.js | 5 + .../atmosphere/acid-rain/trend/index.vue | 470 ++++++++---------- 2 files changed, 205 insertions(+), 270 deletions(-) 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 @@