From d834db340790851078fd384dbccbfa21d2d8b5df Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 10 Feb 2022 09:02:34 +0800
Subject: [PATCH] +解决(点击建筑后,生成的绿布,不会被点击其他关闭)
---
src/components/mobilemap/index.vue | 3 ++-
src/store/modules/mobile.js | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index ec5070b..f1560f0 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -404,7 +404,7 @@
ii++;
cutHeight = height - startHeight;
// console.log(cutHeight);
- console.log(height);
+ // console.log(height);
that.heights = height;
that.heights1 = cutHeight;
// return;
@@ -766,6 +766,7 @@
video: item.videourl,
buts: ["定位", "实景", "图集"],
panoramaurl: item.panoramaurl, //全景
+ fromTo: "mapClick",
};
// 定制化窗体
// console.log(item, useData, "111111");
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 40ec7e2..b8a2e34 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -439,8 +439,21 @@
state.dimensionData.pitch
);
if (!state.MobileWindowsHide) {
+ //关闭弹窗
commit("MSET_MOBILEWINDOWSHIDE", true);
}
+ console.log(data);
+ if (
+ state.select.overlay != undefined &&
+ data.query.fromTo != "mapClick"
+ ) {
+ //关闭绿色边框
+ state.select.overlay.setStyle({
+ material: state.select.color,
+ outline: false,
+ });
+ commit("mset_changeSelect", [undefined, undefined]);
+ }
// console.log(state.dimension);
if (state.dimension != "2.5D") {
// if (true) {
--
Gitblit v1.9.3