From 4ba63e2d2e6041b34b3510cc4ddfdd1bc89e0480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Sat, 25 Dec 2021 17:57:06 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A4=87=E7=94=A8=E6=B0=B4=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drinking-water/statistic/city/waterNutritional.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/water/drinking-water/statistic/city/waterNutritional.vue b/src/views/water/drinking-water/statistic/city/waterNutritional.vue index 1284f5c..7fdfe27 100644 --- a/src/views/water/drinking-water/statistic/city/waterNutritional.vue +++ b/src/views/water/drinking-water/statistic/city/waterNutritional.vue @@ -71,12 +71,12 @@ export default { datasource:{}, selection: [], columns:[ - {title:"监测时间",dataIndex:"city",}, - {title:"类别",dataIndex:"place",}, - {title:"点位名称",dataIndex:"sourceWaterName",}, + {title:"监测时间",dataIndex:"monitorTime",}, + {title:"类别",dataIndex:"subordinateWater",}, + {title:"点位名称",dataIndex:"sectionName",}, {title:"水质类别",dataIndex:"waterSourceProperty",}, - {title: "级别", dataIndex: ""}, - {title: "综合营养指数", dataIndex: ""}, + {title: "级别", dataIndex: "nutritionLevel"}, + {title: "综合营养指数", dataIndex: "compositeNutritionIndex"}, ], From 35e5d10be0d157074273fcd03dec7a61ff7f05f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Mon, 27 Dec 2021 09:52:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E7=A9=BA=E6=95=B0=E6=8D=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/water/drinking-water/statistic/city/situation.vue | 2 +- src/views/water/drinking-water/statistic/city/waterCount.vue | 1 + .../water/drinking-water/statistic/city/waterNutritional.vue | 2 +- src/views/water/drinking-water/statistic/city/waterQuality.vue | 2 +- .../water/drinking-water/statistic/city/waterQualityCount.vue | 2 +- .../water/drinking-water/statistic/city/waterQualityUp.vue | 2 +- .../water/drinking-water/statistic/countryside/waterQuality.vue | 2 +- .../drinking-water/statistic/countryside/waterQualityCount.vue | 2 +- .../drinking-water/statistic/countryside/waterQualityUp.vue | 2 +- src/views/water/drinking-water/statistic/county/situation.vue | 2 +- src/views/water/drinking-water/statistic/county/waterCount.vue | 1 + .../water/drinking-water/statistic/county/waterQuality.vue | 2 +- .../water/drinking-water/statistic/county/waterQualityCount.vue | 2 +- .../water/drinking-water/statistic/county/waterQualityUp.vue | 2 +- 14 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/views/water/drinking-water/statistic/city/situation.vue b/src/views/water/drinking-water/statistic/city/situation.vue index e1ca11c..bb48dc4 100644 --- a/src/views/water/drinking-water/statistic/city/situation.vue +++ b/src/views/water/drinking-water/statistic/city/situation.vue @@ -123,7 +123,7 @@ export default { bill: {}, editableData:[], // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {key: "index",title:"序号",dataIndex: "index",width: 48,align: "center",customRender: ({ index }) => index + 1,}, diff --git a/src/views/water/drinking-water/statistic/city/waterCount.vue b/src/views/water/drinking-water/statistic/city/waterCount.vue index 46dd0d0..41a515d 100644 --- a/src/views/water/drinking-water/statistic/city/waterCount.vue +++ b/src/views/water/drinking-water/statistic/city/waterCount.vue @@ -64,6 +64,7 @@ export default { data() { return { data: [], + datasource:[], locale, bill: {}, // 表格数据接口 diff --git a/src/views/water/drinking-water/statistic/city/waterNutritional.vue b/src/views/water/drinking-water/statistic/city/waterNutritional.vue index 7fdfe27..04d4280 100644 --- a/src/views/water/drinking-water/statistic/city/waterNutritional.vue +++ b/src/views/water/drinking-water/statistic/city/waterNutritional.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"监测时间",dataIndex:"monitorTime",}, diff --git a/src/views/water/drinking-water/statistic/city/waterQuality.vue b/src/views/water/drinking-water/statistic/city/waterQuality.vue index b6a7e43..3a8de1c 100644 --- a/src/views/water/drinking-water/statistic/city/waterQuality.vue +++ b/src/views/water/drinking-water/statistic/city/waterQuality.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"城市名称",dataIndex:"city",}, diff --git a/src/views/water/drinking-water/statistic/city/waterQualityCount.vue b/src/views/water/drinking-water/statistic/city/waterQualityCount.vue index ba78190..03f926a 100644 --- a/src/views/water/drinking-water/statistic/city/waterQualityCount.vue +++ b/src/views/water/drinking-water/statistic/city/waterQualityCount.vue @@ -69,7 +69,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"年份",dataIndex:"year",}, diff --git a/src/views/water/drinking-water/statistic/city/waterQualityUp.vue b/src/views/water/drinking-water/statistic/city/waterQualityUp.vue index 144be3a..5f2f5b2 100644 --- a/src/views/water/drinking-water/statistic/city/waterQualityUp.vue +++ b/src/views/water/drinking-water/statistic/city/waterQualityUp.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"断面名称",dataIndex:"sectionName",}, diff --git a/src/views/water/drinking-water/statistic/countryside/waterQuality.vue b/src/views/water/drinking-water/statistic/countryside/waterQuality.vue index cc3a44b..4dcd416 100644 --- a/src/views/water/drinking-water/statistic/countryside/waterQuality.vue +++ b/src/views/water/drinking-water/statistic/countryside/waterQuality.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"城市名称",dataIndex:"city",}, diff --git a/src/views/water/drinking-water/statistic/countryside/waterQualityCount.vue b/src/views/water/drinking-water/statistic/countryside/waterQualityCount.vue index 805d21d..cc915e0 100644 --- a/src/views/water/drinking-water/statistic/countryside/waterQualityCount.vue +++ b/src/views/water/drinking-water/statistic/countryside/waterQualityCount.vue @@ -69,7 +69,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"年份",dataIndex:"year",}, diff --git a/src/views/water/drinking-water/statistic/countryside/waterQualityUp.vue b/src/views/water/drinking-water/statistic/countryside/waterQualityUp.vue index dd5bf4e..14cb4ea 100644 --- a/src/views/water/drinking-water/statistic/countryside/waterQualityUp.vue +++ b/src/views/water/drinking-water/statistic/countryside/waterQualityUp.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"断面名称",dataIndex:"sectionName",}, diff --git a/src/views/water/drinking-water/statistic/county/situation.vue b/src/views/water/drinking-water/statistic/county/situation.vue index 60a7ab8..2687207 100644 --- a/src/views/water/drinking-water/statistic/county/situation.vue +++ b/src/views/water/drinking-water/statistic/county/situation.vue @@ -124,7 +124,7 @@ export default { bill: {}, editableData:[], // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {key: "index",title:"序号",dataIndex: "index",width: 48,align: "center",customRender: ({ index }) => index + 1,}, diff --git a/src/views/water/drinking-water/statistic/county/waterCount.vue b/src/views/water/drinking-water/statistic/county/waterCount.vue index 2a00a29..286bfe3 100644 --- a/src/views/water/drinking-water/statistic/county/waterCount.vue +++ b/src/views/water/drinking-water/statistic/county/waterCount.vue @@ -63,6 +63,7 @@ export default { }, data() { return { + datasource:[], data: [], locale, bill: {}, diff --git a/src/views/water/drinking-water/statistic/county/waterQuality.vue b/src/views/water/drinking-water/statistic/county/waterQuality.vue index 76c4982..0b4f03f 100644 --- a/src/views/water/drinking-water/statistic/county/waterQuality.vue +++ b/src/views/water/drinking-water/statistic/county/waterQuality.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"城市名称",dataIndex:"city",}, diff --git a/src/views/water/drinking-water/statistic/county/waterQualityCount.vue b/src/views/water/drinking-water/statistic/county/waterQualityCount.vue index a17a854..93df842 100644 --- a/src/views/water/drinking-water/statistic/county/waterQualityCount.vue +++ b/src/views/water/drinking-water/statistic/county/waterQualityCount.vue @@ -69,7 +69,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"年份",dataIndex:"year",}, diff --git a/src/views/water/drinking-water/statistic/county/waterQualityUp.vue b/src/views/water/drinking-water/statistic/county/waterQualityUp.vue index 43b3ee5..f193215 100644 --- a/src/views/water/drinking-water/statistic/county/waterQualityUp.vue +++ b/src/views/water/drinking-water/statistic/county/waterQualityUp.vue @@ -68,7 +68,7 @@ export default { locale, bill: {}, // 表格数据接口 - datasource:{}, + datasource:[], selection: [], columns:[ {title:"断面名称",dataIndex:"sectionName",}, From e2c1fc7c5de350b9e61ea447643b6367b2dfe4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Mon, 27 Dec 2021 10:54:17 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../water/drinking-water/statistic/city/overStandard.vue | 6 +++++- .../water/drinking-water/statistic/city/waterCount.vue | 6 +++++- .../drinking-water/statistic/components/citySearch.vue | 6 ++++-- .../drinking-water/statistic/components/countySearch.vue | 6 ++++-- .../statistic/components/countySideSeatch.vue | 6 ++++-- .../drinking-water/statistic/countryside/overStandard.vue | 6 +++++- .../water/drinking-water/statistic/county/overStandard.vue | 6 +++++- .../water/drinking-water/statistic/county/waterCount.vue | 6 +++++- 8 files changed, 37 insertions(+), 11 deletions(-) diff --git a/src/views/water/drinking-water/statistic/city/overStandard.vue b/src/views/water/drinking-water/statistic/city/overStandard.vue index 5072771..28ca624 100644 --- a/src/views/water/drinking-water/statistic/city/overStandard.vue +++ b/src/views/water/drinking-water/statistic/city/overStandard.vue @@ -8,6 +8,7 @@ :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" + :visiable="visiable" @filterColumns="changeFilter" /> @@ -56,7 +57,10 @@ export default { default: function () { return [] }, - } + }, + visiable:{ + typeof:Boolean + } }, data() { return { diff --git a/src/views/water/drinking-water/statistic/city/waterCount.vue b/src/views/water/drinking-water/statistic/city/waterCount.vue index 41a515d..716b1b7 100644 --- a/src/views/water/drinking-water/statistic/city/waterCount.vue +++ b/src/views/water/drinking-water/statistic/city/waterCount.vue @@ -6,6 +6,7 @@ { + let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) && val; + this.emitData(isSearch) + },200) } }, diff --git a/src/views/water/drinking-water/statistic/components/countySearch.vue b/src/views/water/drinking-water/statistic/components/countySearch.vue index f6bb3e4..8ea5126 100644 --- a/src/views/water/drinking-water/statistic/components/countySearch.vue +++ b/src/views/water/drinking-water/statistic/components/countySearch.vue @@ -174,8 +174,10 @@ export default { }, // 监听组件显示 visiable(val){ - console.log('change',val) - this.emitData(val) + window.setTimeout(()=>{ + let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) && val; + this.emitData(isSearch) + },200) } }, diff --git a/src/views/water/drinking-water/statistic/components/countySideSeatch.vue b/src/views/water/drinking-water/statistic/components/countySideSeatch.vue index 54838f8..10e74f5 100644 --- a/src/views/water/drinking-water/statistic/components/countySideSeatch.vue +++ b/src/views/water/drinking-water/statistic/components/countySideSeatch.vue @@ -174,8 +174,10 @@ export default { }, // 监听组件显示 visiable(val){ - console.log('change',val) - this.emitData(val) + window.setTimeout(()=>{ + let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) && val; + this.emitData(isSearch) + },200) } }, diff --git a/src/views/water/drinking-water/statistic/countryside/overStandard.vue b/src/views/water/drinking-water/statistic/countryside/overStandard.vue index 3de29fb..76414ae 100644 --- a/src/views/water/drinking-water/statistic/countryside/overStandard.vue +++ b/src/views/water/drinking-water/statistic/countryside/overStandard.vue @@ -8,6 +8,7 @@ :filterKeys="filterKeys" @search="searchData" @exportFile="exportFile" + :visiable="visiable" @filterColumns="changeFilter" /> @@ -56,7 +57,10 @@ export default { default: function () { return [] }, - } + }, + visiable:{ + typeof:Boolean + } }, data() { return { diff --git a/src/views/water/drinking-water/statistic/county/overStandard.vue b/src/views/water/drinking-water/statistic/county/overStandard.vue index 307d13e..76af50a 100644 --- a/src/views/water/drinking-water/statistic/county/overStandard.vue +++ b/src/views/water/drinking-water/statistic/county/overStandard.vue @@ -6,6 +6,7 @@ Date: Mon, 27 Dec 2021 14:11:24 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=B7=A6=E8=BE=B9=E5=88=86=E8=B4=9D?= =?UTF-8?q?=E5=80=BC=E4=BF=9D=E7=95=99=E4=B8=80=E4=BD=8D=E5=B0=8F=E6=95=B0?= =?UTF-8?q?=20=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81=E5=88=A0=E9=99=A4=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=89=93=E5=BC=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sound/function/statistic/compare.vue | 502 ------------------ .../sound/function/statistic/leq-compare.vue | 102 ---- src/views/sound/road/trend/index.vue | 3 + vue.config.js | 7 + 4 files changed, 10 insertions(+), 604 deletions(-) delete mode 100644 src/views/sound/function/statistic/compare.vue delete mode 100644 src/views/sound/function/statistic/leq-compare.vue diff --git a/src/views/sound/function/statistic/compare.vue b/src/views/sound/function/statistic/compare.vue deleted file mode 100644 index 174485f..0000000 --- a/src/views/sound/function/statistic/compare.vue +++ /dev/null @@ -1,502 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/sound/function/statistic/leq-compare.vue b/src/views/sound/function/statistic/leq-compare.vue deleted file mode 100644 index e5ad4b0..0000000 --- a/src/views/sound/function/statistic/leq-compare.vue +++ /dev/null @@ -1,102 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/sound/road/trend/index.vue b/src/views/sound/road/trend/index.vue index 6c62932..aa8e7bc 100644 --- a/src/views/sound/road/trend/index.vue +++ b/src/views/sound/road/trend/index.vue @@ -124,6 +124,9 @@ }) }, initChart() { + this.trendData.yAxis[0].axisLabel = { + formatter: function (value) { return value.toFixed(1);} + }; echarts.init(document.getElementById("chartColumn")).dispose(); this.chartColumn = markRaw(echarts.init(document.getElementById('chartColumn'))) this.chartColumn.setOption({ diff --git a/vue.config.js b/vue.config.js index 3764250..6147bf0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,5 +23,12 @@ module.exports = { } } } + }, + devServer: { + open: true, + overlay: { + warnings: true, + errors: true + } } } From 0a2fcfcac534a68075198621f69d74ae20c95d93 Mon Sep 17 00:00:00 2001 From: art_station Date: Mon, 27 Dec 2021 19:39:50 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=8D=97=E5=AE=81=E5=B8=82=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sound/road/trend/index.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/views/sound/road/trend/index.vue b/src/views/sound/road/trend/index.vue index aa8e7bc..968b80e 100644 --- a/src/views/sound/road/trend/index.vue +++ b/src/views/sound/road/trend/index.vue @@ -24,13 +24,13 @@ - + - + @@ -63,7 +63,7 @@ queryParams: { startYear: 2020, endYear: 2021, - areaList: ['兴宁区','西乡塘区'], + areaList: [], placeList: [] }, trendData: [], @@ -78,12 +78,6 @@ this.drawTrend() }, methods: { - handleAreaChange(value) { - this.queryParams.areaList = Object.values(value) - }, - handlePlaceChange(value) { - this.queryParams.placeList = Object.values(value) - }, // 下拉列表 loadOptionData() { getColumnOptions("place").then((res) => { @@ -101,6 +95,7 @@ value: item, }; }); + this.areaOptions.unshift({ label: '南宁市', value: '南宁'}) }); getColumnOptions("monitor_year").then((res) => { this.yearOptions = res.data.data.map((item) => {