|
@@ -18,6 +18,7 @@
|
|
|
<!-- 地图图例 -->
|
|
<!-- 地图图例 -->
|
|
|
<!-- <map-legend></map-legend> -->
|
|
<!-- <map-legend></map-legend> -->
|
|
|
<land-use-legend @change="handleLegendChange"></land-use-legend>
|
|
<land-use-legend @change="handleLegendChange"></land-use-legend>
|
|
|
|
|
+ <div class="show-point yes-events" v-show="showPoint" @click="handleShowPointClick"></div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div ref="mapRef" class="bottom-map"></div>
|
|
<div ref="mapRef" class="bottom-map"></div>
|
|
@@ -70,12 +71,15 @@ const baseTabs = ["物候期分布", "长势等级", "水利", "灌渠与泵站"
|
|
|
const activeBaseTab = ref("物候期分布");
|
|
const activeBaseTab = ref("物候期分布");
|
|
|
|
|
|
|
|
const warningLayers = ref({});
|
|
const warningLayers = ref({});
|
|
|
-
|
|
|
|
|
|
|
+const showPoint = ref(false)
|
|
|
const handleBaseTabClick = (tab) => {
|
|
const handleBaseTabClick = (tab) => {
|
|
|
activeBaseTab.value = tab;
|
|
activeBaseTab.value = tab;
|
|
|
|
|
+ showPoint.value = false
|
|
|
staticMapPointLayers.hidePoint()
|
|
staticMapPointLayers.hidePoint()
|
|
|
if (tab === "资源") {
|
|
if (tab === "资源") {
|
|
|
staticMapPointLayers.showPoint()
|
|
staticMapPointLayers.showPoint()
|
|
|
|
|
+ }else if (tab === "灌渠与泵站") {
|
|
|
|
|
+ showPoint.value = true
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -83,6 +87,10 @@ const handleSmartFarmClick = () => {
|
|
|
window.open("https://feiniao-pc-gly.feiniaotech.com/#/login");
|
|
window.open("https://feiniao-pc-gly.feiniaotech.com/#/login");
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const handleShowPointClick = () => {
|
|
|
|
|
+ eventBus.emit("chat:showTrackDialog")
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
// 使用 nextTick 确保 DOM 已经渲染完成,地图容器有正确的尺寸
|
|
// 使用 nextTick 确保 DOM 已经渲染完成,地图容器有正确的尺寸
|
|
|
await nextTick();
|
|
await nextTick();
|
|
@@ -445,6 +453,16 @@ const handleLegendChange = (data) => {
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
+ .show-point{
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: calc(50% - 250px);
|
|
|
|
|
+ left: calc(50% - 250px);
|
|
|
|
|
+ width: 500px;
|
|
|
|
|
+ height: 500px;
|
|
|
|
|
+ // background: red;
|
|
|
|
|
+ z-index: 2;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.left,
|
|
.left,
|
|
|
.right {
|
|
.right {
|
|
|
width: calc(376px + 54px);
|
|
width: calc(376px + 54px);
|