From ab521bed716f1c6812296db61ffe777a257d9c86 Mon Sep 17 00:00:00 2001
From: Jin Lei <jinlei_182@163.com>
Date: 星期三, 15 十一月 2023 18:52:51 +0800
Subject: [PATCH] [修改功能]1.删除视频监控属性弹窗

---
 src/components/menu/tools/special.vue |   77 +++++++++++++++-----------------------
 1 files changed, 31 insertions(+), 46 deletions(-)

diff --git a/src/components/menu/tools/special.vue b/src/components/menu/tools/special.vue
index 8d097a1..26b3b74 100644
--- a/src/components/menu/tools/special.vue
+++ b/src/components/menu/tools/special.vue
@@ -65,7 +65,7 @@
           <el-button> <img src="@/assets/img/left/ztfx/yqfk.png" /> </el-button
         ></el-tooltip>
       </div>
-      <div class="specialTool" @click="kuangxuan()">
+      <div class="specialTool" @click="rangeQuery()">
         <el-tooltip
           class="item"
           effect="dark"
@@ -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: "鏍稿績鍖�" },
@@ -462,7 +474,7 @@
     yqfkHandle() {
       this.setYqfk(!this.yqfk);
     },
-    kuangxuan() {
+    rangeQuery() {
       Bus.$emit("showRangeBox", true);
     },
     tdglHandle() {
@@ -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;
@@ -606,31 +615,6 @@
               tooltip.show(false);
               tooltip = null;
             }
-
-            tooltip = sgworld.Core.CreateResultTooltip(window.Viewer, {
-              color: "black",
-              addY: -40,
-              far: 200000,
-              closeBtn: true,
-              close: () => {
-                this.resetImg();
-                this.resetBorder();
-              },
-            });
-
-            let description = `<div style='background: 
-                                      rgba(14, 50, 143, 0.6);
-                                      border: 1px solid #205fbc;
-                                       border-radius: 5px;
-                                       color: #fff;
-                                       padding: 15px;  
-                                       box-shadow: 0px 1px 10px 0px rgba(3, 10, 26, 0.38);
-                                       '>${tooltipHTML}</div>`;
-
-            tooltip.showAt(
-              Cesium.Cartesian3.fromDegrees(lng, lat, 0),
-              description
-            );
 
             //鍏抽棴鍦板潡淇℃伅寮圭獥
             Bus.$emit("closeLandInfoPop", true);
@@ -798,20 +782,7 @@
         });
       });
     },
-    spjkHandle() {
-      if (window.sxtkGeojson) {
-        window.sxtkGeojson.deleteObject();
-        window.sxtkGeojson = null;
-        window.sxthandler.destroy();
-        //鍏抽棴寮圭獥
-        Bus.$emit("closeRightPop", true);
-        layuiLayer.close(SmartEarthPopupData.layerProp);
-        return;
-      } else {
-        Bus.$emit("showSPJK");
-        // this.spjkLoad();
-      }
-    },
+   
     handleCommand(command) {
       switch (command) {
         case "qytj":
@@ -887,6 +858,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