From 2ff5176a3b6a94e4c86d8c219cce996dd69012ed Mon Sep 17 00:00:00 2001 From: hey7845 Date: Wed, 12 Jan 2022 16:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=A9=BA=E6=B0=94=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/ecology/atmosphere/air.js | 12 +- .../atmosphere/acid-rain/trend/index.vue | 29 ++ src/views/atmosphere/air/trend/index.vue | 473 +++++++++--------- 4 files changed, 269 insertions(+), 247 deletions(-) diff --git a/.env.development b/.env.development index ece64a9..f1ec8de 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VUE_APP_API_BASE_URL=http://1.14.132.108:10002/api \ No newline at end of file +VUE_APP_API_BASE_URL=http://localhost:10001/api \ No newline at end of file diff --git a/src/api/ecology/atmosphere/air.js b/src/api/ecology/atmosphere/air.js index 703a0a4..4e040b1 100644 --- a/src/api/ecology/atmosphere/air.js +++ b/src/api/ecology/atmosphere/air.js @@ -71,11 +71,15 @@ const statisticArea = "/ambientAir/ambientAir/statistic/area"; const getPlaceGis = function(data){ return axios.get("/ambientAir/ambientAir/gis/place",{params:data}) } +const getYearOptions = () => axios.get("/ambientAir/ambientAir/yearOptions") const getTrendChart = function(data){ return axios.post("/ambientAir/ambientAir/trend/chart",data) } -const getPlaceByRegionLevel = function(column){ - return axios.get("/ambientAir/ambientAir/place/region",{params:{column}}) +const getCityPlace = function(column){ + return axios.get("/ambientAir/airPlaceBasicInfoDict/place/city",{params:{column}}) +} +const getCountryPlace = function(column){ + return axios.get("/ambientAir/airPlaceBasicInfoDict/place/country",{params:{column}}) } // 排行 const airDayRankUrl = "/zhenQiWang/ambientAirZhenqiCityDayAqiRankData"; @@ -112,6 +116,8 @@ export { airYearProvincialCapitalRankUrl, airPm25YearProvincialCapitalRankUrl, airMonthProvincialCapitalRankUrl, + getYearOptions, getTrendChart, - getPlaceByRegionLevel + getCityPlace, + getCountryPlace } diff --git a/src/views/atmosphere/acid-rain/trend/index.vue b/src/views/atmosphere/acid-rain/trend/index.vue index 2b609f3..ad25f0b 100644 --- a/src/views/atmosphere/acid-rain/trend/index.vue +++ b/src/views/atmosphere/acid-rain/trend/index.vue @@ -85,6 +85,7 @@ return { queryParams: { yearList: ["2020", "2021"], + monthList: [], areaList: ['南宁市'], placeList: [], regionLevel: '市级', // 区域等级 @@ -124,6 +125,34 @@ } ], yOptions: [ + { + label: '达标天数', + value: '达标天数', + }, + { + label: '达标率', + value: '达标率', + }, + { + label: '浓度', + value: '浓度', + }, + { + label: '首要污染天数', + value: '首要污染天数', + }, + { + label: '空气质量指数', + value: '空气质量指数', + }, + { + label: '优良率', + value: '优良率', + }, + { + label: '多项首要污染物天数', + value: '多项首要污染物天数', + }, ] }; }, diff --git a/src/views/atmosphere/air/trend/index.vue b/src/views/atmosphere/air/trend/index.vue index ec4fe26..5498474 100644 --- a/src/views/atmosphere/air/trend/index.vue +++ b/src/views/atmosphere/air/trend/index.vue @@ -1,284 +1,271 @@