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,