From 4509dd489115a499a0f63487ec90adfdc7a5cd56 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期五, 20 十月 2023 11:09:35 +0800
Subject: [PATCH] 最新版本

---
 src/components/menu/tools/special.vue |   33 ++++++++++++++++++++++++++++-----
 1 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/src/components/menu/tools/special.vue b/src/components/menu/tools/special.vue
index 8d097a1..2977cfe 100644
--- a/src/components/menu/tools/special.vue
+++ b/src/components/menu/tools/special.vue
@@ -76,6 +76,17 @@
           <el-button> <img src="@/assets/img/left/ztfx/sjxq.png" /> </el-button
         ></el-tooltip>
       </div>
+      <!-- <div class="specialTool" @click="guanxian(openGX)">
+        <el-tooltip
+          class="item"
+          effect="dark"
+          content="鍦颁笅绠$嚎"
+          placement="top-start"
+          popper-class="item_tooltip"
+        >
+          <el-button> <img src="@/assets/img/left/ztfx/spl.png" /> </el-button
+        ></el-tooltip>
+      </div> -->
       <!-- <div class="specialTool" @click="sceneRoaming">
         <el-tooltip
           class="item"
@@ -122,7 +133,7 @@
   /* border-radius: 30px; */
   box-shadow: 0px 0px 7px rgba(76, 165, 248, 0.8) inset;
   background-color: rgba(14, 50, 143, 0.5);
-  width: 460px;
+  width: 350px;
 }
 .specialTools {
   margin-left: 20px;
@@ -207,7 +218,6 @@
 import Bus from "../../tools/Bus";
 import { roman } from "../../../assets/json/index.js";
 import URLInCode from "@/assets/js/urlInCode";
-
 let handler;
 let pickFeature;
 let tooltipHTML;
@@ -220,12 +230,14 @@
 let video2;
 let video3;
 let video4;
+let promiseS3M;
 //浜ら�氬浘灞�
 let panoramaLayer;
 export default {
   name: "special",
   data() {
     return {
+      openGX: "open",
       showPointInfo: true,
       romanOption: [
         { name: "鏍稿績鍖�" },
@@ -547,9 +559,7 @@
       handler.setInputAction((event) => {
         let nPickFeature = sgworld.Viewer.scene.pick(event.position);
         if (Cesium.defined(nPickFeature)) {
-          // console.log(nPickFeature);
           if (nPickFeature.primitive instanceof Cesium.Billboard) {
-            console.log(nPickFeature.id);
             if (nPickFeature.id.length > 0) {
               return;
             }
@@ -568,7 +578,6 @@
             if (nPickFeature.id.tag) {
               let properties = nPickFeature.id.properties;
               let propertyNames = nPickFeature.id.properties.propertyNames;
-              // console.log(propertyNames);
               if (propertyNames.indexOf("鐩戞帶鍚�") !== -1) {
                 obj["JK鍚嶇О"] = properties["JK鍚嶇О"]._value;
                 obj["JK绫诲瀷"] = properties["JK绫诲瀷"]._value;
@@ -887,6 +896,20 @@
       video && video.destroy();
       video = undefined;
     },
+    guanxian(params) {
+      if (params == "open") {
+        promiseS3M = sgworld.coreMap.scene.open(
+          "http://192.162.2.2:8090/iserver/services/3D-GX/rest/realspace"
+        );
+        this.openGX = "close";
+      } else {
+        promiseS3M.then((res) => {
+          res.forEach((item) => {
+            item.visible = false;
+          });
+        });
+      }
+    },
   },
 };
 </script>

--
Gitblit v1.9.3