专湖区域筛选去重
This commit is contained in:
@@ -217,12 +217,27 @@ export default {
|
|||||||
/**获取下来框数据 */
|
/**获取下来框数据 */
|
||||||
loadOptionData() {
|
loadOptionData() {
|
||||||
getLakeDropdown().then((res) => {
|
getLakeDropdown().then((res) => {
|
||||||
this.palceOptions = res.data.data.map((item) => {
|
|
||||||
return {
|
let palceOptions = {}
|
||||||
label: item.regionName,
|
let newPlace = []
|
||||||
value: item.regionName,
|
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) => {
|
this.sectionOptions= res.data.data.map((item) => {
|
||||||
return {
|
return {
|
||||||
label: item.sectionName,
|
label: item.sectionName,
|
||||||
|
|||||||
Reference in New Issue
Block a user