From 5421d1e2d9749d9193641139cbf3b3cbf2157ebb Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 11 Mar 2022 18:03:23 +0800
Subject: [PATCH] 部分更改

---
 src/pcviews/tool/sign.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/pcviews/tool/sign.vue b/src/pcviews/tool/sign.vue
index df09300..c79594f 100644
--- a/src/pcviews/tool/sign.vue
+++ b/src/pcviews/tool/sign.vue
@@ -46,10 +46,10 @@
         }
     },
     computed: {
-        ...mapGetters(['viewer', 'addSignList'])
+        ...mapGetters(['addSignList'])
     },
     mounted () {
-        this.$store.commit('initLabelLayer', this.viewer)
+        this.$store.commit('initLabelLayer', global.viewer)
         this.getData()
     },
     watch: {
@@ -69,7 +69,7 @@
             //   noOpen: true,
             //   mviewer: that.viewer,
             // });
-            that.viewer.camera.setView({
+            global.viewer.camera.setView({
                 // Cesium的坐标是以地心为原点,一向指向南美洲,一向指向亚洲,一向指向北极州
                 // fromDegrees()方法,将经纬度和高程转换为世界坐标
                 destination: global.DC.Namespace.Cesium.Cartesian3.fromDegrees(
@@ -121,10 +121,10 @@
         },
         moveMessage (e, b) {
             if (b == '') {
-                this.viewer.tooltip.enable = false
+                global.viewer.tooltip.enable = false
             } else {
-                this.viewer.tooltip.enable = true
-                this.viewer.tooltip.showAt(e.windowPosition, b)
+                global.viewer.tooltip.enable = true
+                global.viewer.tooltip.showAt(e.windowPosition, b)
             }
         },
 
@@ -132,19 +132,19 @@
             var that = this
             this.$store.commit('set_closeMapClick', true)
             // console.log("开始", "see");
-            that.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
+            global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
                 that.moveMessage(e, '点击确认标注位置')
             )
 
-            that.viewer.once(global.DC.MouseEventType.CLICK, (e) => {
+            global.viewer.once(global.DC.MouseEventType.CLICK, (e) => {
                 if (that.destroyedFlag == false) return
 
-                that.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
+                global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
                     that.moveMessage(e, '')
                 )
 
                 // eslint-disable-next-line no-unused-vars
-                const popup = new global.DC.DivForms(this.viewer, {
+                const popup = new global.DC.DivForms(global.viewer, {
                     domId: 'AddTagBox',
                     position: [
                         global.DC.Transform.transformWGS84ToCartesian(
@@ -172,7 +172,7 @@
         var that = this
         that.destroyedFlag = false
         if (global.DC) {
-            that.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
+            global.viewer.on(global.DC.MouseEventType.MOUSE_MOVE, (e) =>
                 that.moveMessage(e, '')
             )
         }

--
Gitblit v1.9.3