From e733164e1c779b3aef7245936b9daf7875bf791e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 14 Dec 2023 17:12:33 +0800
Subject: [PATCH] 解决屏幕缩放导致鼠标位置不准确的问题,右侧,切换校区后的显示BUG

---
 src/components/mobilemap/index.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index c7a68ec..82e3d8b 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -34,7 +34,7 @@
         <!-- 控制↑ -->
         <!-- 控制大弹窗的弹窗 -->
         <!-- v-if="mBigPopupAfter" -->
-        <mobilePopupOurAfter></mobilePopupOurAfter>
+        <mobilePopupOurAfter ref="MobilePopupOurAfter"></mobilePopupOurAfter>
         <!-- 大弹窗 -->
         <mobilePopupOur :style="[bigPopup]" v-if="mBigPopup"></mobilePopupOur>
         <!-- 测试-跳转位置 -->
@@ -42,7 +42,7 @@
         <!-- 实景窗口 -->
         <mobilePanorama></mobilePanorama>
         <!-- 退出导航 -->
-        <mobileCloseRouter></mobileCloseRouter>
+        <mobileCloseRouter ref="MobileCloseRouter"></mobileCloseRouter>
         <!-- 退出活动 -->
         <mobileCloseRouterMany></mobileCloseRouterMany>
         <!-- 活动窗口 -->
@@ -109,7 +109,7 @@
         fullExtent: [
             112.51302551881798, -0.16235359398493399, 112.72742295590702, 0.000004509195932360471
         ],
-        polygonUrl: 'https://fkxt.jxstnu.edu.cn/changjing/lkarcgisapp'
+        polygonUrl: 'https://fkxt.jxstnu.edu.cn/changjing/fllkarcgisapp'
     }
 ]
 
@@ -173,6 +173,8 @@
         campusValue: {
             handler (newData) {
                 this.$nextTick(() => {
+                    this.$refs.MobileCloseRouter.mobileRouterClose()
+
                     this.campusCut(newData)
 
                     this.$refs.mobileLeftNav.initialize(newData)
@@ -329,7 +331,8 @@
             const that = this
 
             getBuildClock({
-                mechanismname: event.target.values_.attributes['楼栋号']
+                mechanismname: event.target.values_.attributes['楼栋号'],
+                campus: this.campusValue
             }).then((res) => {
                 if (JSON.stringify(res.data.data) == '{}') return
                 const item = res.data.data
@@ -435,6 +438,7 @@
         },
 
         handleCommand (command) {
+            this.$refs.MobilePopupOurAfter.closeBigPopupAfter()
             this.setCampusValue(command.dictKey)
         },
 

--
Gitblit v1.9.3