diff --git a/src/views/sponeScreen/HaiMianScreen/index.vue b/src/views/sponeScreen/HaiMianScreen/index.vue index 98d2250..a9e1962 100644 --- a/src/views/sponeScreen/HaiMianScreen/index.vue +++ b/src/views/sponeScreen/HaiMianScreen/index.vue @@ -89,8 +89,8 @@
{{ weatherInfo.text }} {{ weatherInfo.temp }}℃
{{ dateNow }}
@@ -144,6 +144,7 @@ import NewFiberMapUtils from '@/utils/gis/NewFiberMapUtils'; import newfiberMapBoxVectorLayer from '@/views/sponeScreen/gisMF/mapboxVectorLayer.js'; import { onBeforeUnmount } from 'vue'; +import { artificialSiteSearch } from '@/api/floodSys/floodStation.js'; const { proxy } = getCurrentInstance(); const router = useRouter(); @@ -208,7 +209,14 @@ showLegend.value = false; } } - +//获取所有站点 +const getAllStationInfo = async () => { + let res = await artificialSiteSearch(); + if (res && res.code == 200) { + stationList.value = res.data; + console.log(res.data); + } +}; // 获取天气信息 const getWeather = () => { axios @@ -258,9 +266,13 @@ newfiberMapBoxVectorLayer.removeByIds(['bengzhan_Area']); //清除泵站范围 } }; - +//全局搜索站点 +const selectPointByName = value => { + console.log('value---', value); +}; onMounted(() => { getWeather(); + getAllStationInfo(); // 获取项目片区点击 bus.on('checkProjectArea', params => { areaObj.value = params;