diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index 7dd2047..9928b49 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ + + + + appStore.MapData, (newValue, oldValue) => { if (appStore.MapData && appStore.MapData.length) { if (number.value === 1) { - GetSearchList(); + GetSearchList(appStore.MapData); number.value = 4; } } @@ -62,9 +105,9 @@ { deep: true, once: true } ); -function GetSearchList() { +function GetSearchList(data) { SelectList.value = []; - appStore.MapData.map(item => { + data.map(item => { SelectList.value = SelectList.value.concat(item.data); }); // console.log('MapData', appStore.MapData, SelectList.value); @@ -123,6 +166,17 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); +const tabsClick=(e)=>{ + let type=e.paneName + getItem.value='' + selectmodel.value='' + if(type=='zhandian'){ + GetSearchList(appStore.MapData) + }else if(type=='daolu'){ + GetSearchList(roadData.value) + + } +} onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -146,6 +200,13 @@ z-index: 999; border-radius: 6px; } +.selectTabs { + position: absolute; + + width: 100%; + left: 0; + top: 0; +} :deep(.el-input__wrapper) { background: #0d2359 !important; @@ -174,7 +235,9 @@ background: #0d2359 !important; border-radius: 6px !important; border: 1px solid #0b9bff !important; - + .el-scrollbar{ + padding-top: 40px; +} .el-select-dropdown__item { font-family: Source Han Sans CN; font-weight: bold;