From a916fc2df00bac9f8210b09fd7ee79f8b291e345 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期三, 07 八月 2024 13:35:08 +0800
Subject: [PATCH] 最新

---
 src/components/sideMenu/roamPanel/roamPanel.vue |   55 ++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 46 insertions(+), 9 deletions(-)

diff --git a/src/components/sideMenu/roamPanel/roamPanel.vue b/src/components/sideMenu/roamPanel/roamPanel.vue
index 97f3d4e..b336e18 100644
--- a/src/components/sideMenu/roamPanel/roamPanel.vue
+++ b/src/components/sideMenu/roamPanel/roamPanel.vue
@@ -35,6 +35,7 @@
 window.currentOperator = null;
 import store from "@/utils/store.js";
 import { roman } from "../../../../static/json/roam.js";
+import { layers } from '../../../../static/json/layer.js';
 export default {
   name: "LayerPanel",
   data() {
@@ -67,6 +68,37 @@
       ],
     };
   },
+  mounted() {
+    let newDom = document.createElement("div");
+    newDom.className = "dropUp";
+    newDom.id = 'drop'
+    newDom.innerHTML = "锔�";
+    newDom.style.position = "absolute";
+    newDom.style.left = "43%";
+    newDom.style.bottom = "190px";
+    newDom.style.width = "60px";
+    newDom.style.height = "20px";
+    newDom.style.background = "#ffffff";
+    newDom.style.color = "black";
+    newDom.style.borderRadius = "20px 20px 0px 0px";
+    newDom.style.textAlign = "center";
+    newDom.style.display = "none";
+    newDom.style.zIndex = "999999999";
+    document.querySelector("body").appendChild(newDom);
+    newDom.onclick = function () {
+      if (newDom.className == "dropDown") {       
+        newDom.className = "dropUp";
+        newDom.innerHTML = "锔�";
+        newDom.style.bottom = "190px";
+        document.querySelector(".layui-layer-iframe").style.height = '200px';
+      } else {  
+        newDom.className = "dropDown";
+        newDom.innerHTML = "锕�";
+        newDom.style.bottom = "495px";
+        document.querySelector(".layui-layer-iframe").style.height = '500px';   
+      }
+    };
+  },
   methods: {
     // 瀹氱偣缁曢
     handleAroundClick() {
@@ -83,18 +115,21 @@
       //     //缁撴潫璺緞婕父
       //     this.ljmy();
       // }
-      window.pointerFly=sgworld.drawObj = window.currentOperator = sgworld.Analysis.setPointFly();
+      window.pointerFly =
+        sgworld.drawObj =
+        window.currentOperator =
+          sgworld.Analysis.setPointFly();
     },
     // 缁撴潫椤剁偣缁曢
-     setClearPointFly() {
-        if (this.pointerFly) {
-            this.pointerFly && this.pointerFly.end();
-            this.pointerFly = null;
-        }
+    setClearPointFly() {
+      if (this.pointerFly) {
+        this.pointerFly && this.pointerFly.end();
+        this.pointerFly = null;
+      }
     },
     // 婕父
     handleRoamClick(result) {
-      store.setBasicMap("涓夌淮褰卞儚");
+      store.setBasicMap("涓夌淮妯″瀷");
       store.setRoamPanelShow(false);
       store.setSearchPanelShow(false);
       const val = roman.filter((res) => {
@@ -115,16 +150,18 @@
           type: 2,
           title: result.name,
           shade: false,
-          area: ["100%", "210px"],
+          area: ["100%", '200px'],
           offset: "r",
           skin: "other-class",
           content: SmartEarthRootUrl + "Workers/path/Path.html",
           end: function () {
+            document.querySelector("#drop").style.display = "none";
             PathAnimationData.fly && PathAnimationData.fly.exit();
             store.setSearchPanelShow(true);
           },
         });
-      });
+      });  
+        document.querySelector("#drop").style.display = "block";
     },
     closeCurrentOperator() {
       if (window.currentOperator) {

--
Gitblit v1.9.3