From 4d61ba87d52c52783e156b135eb88682fc5a1c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Thu, 23 Dec 2021 15:06:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=93=E6=B9=96?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/water/lake/statistic/special/component/search.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/water/lake/statistic/special/component/search.vue b/src/views/water/lake/statistic/special/component/search.vue index 8e8fe42..82dbbc4 100644 --- a/src/views/water/lake/statistic/special/component/search.vue +++ b/src/views/water/lake/statistic/special/component/search.vue @@ -51,7 +51,7 @@ From d98096ff4d094c0837b85ac009b71d92b761da8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Thu, 23 Dec 2021 15:12:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=93=E6=B9=96=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistic/special/component/search.vue | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/views/water/lake/statistic/special/component/search.vue b/src/views/water/lake/statistic/special/component/search.vue index 82dbbc4..0ad86da 100644 --- a/src/views/water/lake/statistic/special/component/search.vue +++ b/src/views/water/lake/statistic/special/component/search.vue @@ -214,15 +214,30 @@ export default { this.filter = newList; }, - /**获取下来框数据 */ + /**获取下来框数据 */ loadOptionData() { getLakeDropdown().then((res) => { - this.palceOptions = res.data.data.map((item) => { - return { - label: item.regionName, - value: item.regionName, - }; - }); + + let palceOptions = {} + let newPlace = [] + res.data.data.forEach(item=>{ + palceOptions[item.regionName] = item.regionName + }) + for(let i in palceOptions){ + newPlace.push({ + label: palceOptions[i], + value: palceOptions[i], + }) + } + this.palceOptions = [...newPlace] + + + // this.palceOptions = res.data.data.map((item) => { + // return { + // label: item.regionName, + // value: item.regionName, + // }; + // }); this.sectionOptions= res.data.data.map((item) => { return { label: item.sectionName,