From 8cc2bea78efdd54158be477b12991e3c56a18b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Fri, 17 Dec 2021 15:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8C=BA=E5=9F=9F=E5=8E=BB?= =?UTF-8?q?=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lake/statistic/inner/component/search.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/water/lake/statistic/inner/component/search.vue b/src/views/water/lake/statistic/inner/component/search.vue index d5901e0..271d24a 100644 --- a/src/views/water/lake/statistic/inner/component/search.vue +++ b/src/views/water/lake/statistic/inner/component/search.vue @@ -217,12 +217,27 @@ export default { /**获取下来框数据 */ 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,