From c70733d91674915623da7a85ddfa90165cc8641e Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期二, 30 四月 2024 14:15:37 +0800
Subject: [PATCH] 代码更新

---
 src/views/comm/planFormulation/planFormulation.vue |   18 ++++++---
 src/assets/img/feixingqi.png                       |    0 
 public/config/config.js                            |    3 +
 src/components/mapsdk.vue                          |   51 +++++++++++++++++++++++++
 4 files changed, 66 insertions(+), 6 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index 6b4745b..4a28313 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -44,6 +44,9 @@
 // DEM
 var demLayer = LFData + '/dem';
 
+
+// t閫氫俊鎯冲畾绠$悊椤甸潰
+const thinkManageurl = "http://localhost/thinkManage/#/"
 // 缁煎悎灞曠ず
 window.sceneConfig = {
   // Sdk璁稿彲
diff --git a/src/assets/img/feixingqi.png b/src/assets/img/feixingqi.png
new file mode 100644
index 0000000..6ed1747
--- /dev/null
+++ b/src/assets/img/feixingqi.png
Binary files differ
diff --git a/src/components/mapsdk.vue b/src/components/mapsdk.vue
index db1eba0..baa8522 100644
--- a/src/components/mapsdk.vue
+++ b/src/components/mapsdk.vue
@@ -1,6 +1,11 @@
 <template>
   <div class="mapBox">
     <div id="mapdiv">
+      <div class="imgbox"
+           v-if="showFlyimg">
+        <img src="../assets/img/feixingqi.png"
+             alt="" />
+      </div>
       <div class="menu_Top box_divm"
            v-if="$store.state.mapMenuBoolean">
         <map-menu-top v-if="$store.state.mapMenuBoxFlag == '1'" />
@@ -663,6 +668,7 @@
       }
     };
     return {
+      showFlyimg: false,
       centerFlag: false,
       buffer: null,
       showBufferBoxDialog: false,
@@ -1126,6 +1132,35 @@
       );
 
     },
+    ViewerCameraBack () {
+      var that=this;
+      Viewer.camera.changed.addEventListener(() => {
+        // 瑙嗛珮 km
+        let alt=(
+          Viewer.camera.positionCartographic.height/1000
+        ).toFixed(2);
+        // 鏂逛綅瑙�
+        let heading=Cesium.Math.toDegrees(
+          Viewer.camera.heading
+        ).toFixed(2);
+        // 淇话瑙�
+        let pitch=Cesium.Math.toDegrees(Viewer.camera.pitch).toFixed(
+          2
+        );
+        // 缈绘粴瑙�
+        let roll=Cesium.Math.toDegrees(Viewer.camera.roll).toFixed(2);
+        // 绾у埆
+        let level=0;
+        let tileRender=Viewer.scene._globe._surface._tilesToRender;
+        if(tileRender&&tileRender.length>0) {
+          level=Viewer.scene._globe._surface._tilesToRender[0]._level;
+        }
+        // let str = `绾ф暟锛�${level} 瑙嗛珮锛�${alt}km  鏂逛綅瑙掞細${heading}掳 淇话瑙掞細${pitch}掳 缈绘粴瑙掞細${roll}掳`;
+
+        that.showFlyimg=pitch<-60? true:false;
+        // console.log(that.showFlyimg);
+      });
+    },
     init3DMap () {
       var webKey="94a34772eb88317fcbf8428e10448561";
       //鍦板浘鍒濆鍖�
@@ -1216,6 +1251,7 @@
       window.terrainFlag='MPT'
       window.elevationTool=new SmartEarth.ElevationTool(window.sgworld);
       elevationTool.setContourColor("#F1D487");
+      this.ViewerCameraBack();
     },
     //dem鍒囨崲
     changeTerrainLayer () {
@@ -2361,4 +2397,19 @@
 //   color: white !important;
 //   border: 1px solid rgba(255, 255, 255, 0.2) !important;
 // }
+.imgbox {
+  position: absolute;
+  /* background-color: #fff; */
+  /* opacity: 0.2;. */
+  /* top:50px; */
+  width: 100%;
+  height: 400px;
+  z-index: 9;
+  top: 0px;
+}
+img {
+  width: 100%;
+  height: 100%;
+  -webkit-user-drag: none;
+}
 </style>
diff --git a/src/views/comm/planFormulation/planFormulation.vue b/src/views/comm/planFormulation/planFormulation.vue
index da74a12..612c342 100644
--- a/src/views/comm/planFormulation/planFormulation.vue
+++ b/src/views/comm/planFormulation/planFormulation.vue
@@ -1,7 +1,10 @@
 
 <template>
   <div class="dictionaryBox">
-    <My-bread :list="[
+    <iframe :src="url"
+            width="100%"
+            height="100%"></iframe>
+    <!-- <My-bread :list="[
         `閫氫俊鏂规绛瑰垝`,
         `閫氫俊鏂规鎷熷埗`,
       ]"></My-bread>
@@ -101,7 +104,7 @@
                    size="small"
                    @click="handleClose">纭� 瀹�</el-button>
       </span>
-    </el-dialog>
+    </el-dialog> -->
   </div>
 </template>
 
@@ -140,13 +143,16 @@
       title: "",
       editFrom: {
         types: "",
-      }
+      },
+      url: null,
     };
   },
   watch: {
 
   },
   created () {
+    this.url=thinkManageurl;
+    console.log(this.ur);
     this.setTableDataStart();
   },
   methods: {
@@ -210,9 +216,9 @@
 <style lang="less" scoped>
 //@import url(); 寮曞叆鍏叡css绫�
 .dictionaryBox {
-  height: calc(100% - 40px);
-  width: calc(100% - 40px);
-  padding: 10px;
+  height: calc(100% - 20px);
+  width: calc(100% - 20px);
+  // padding: 10px;
   background: #f4f8ff;
   margin: 10px;
   border-radius: 5px;

--
Gitblit v1.9.3