From e40ee62d3e9b71ffe3432d32a53a00c4097b5708 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 31 Dec 2021 09:03:28 +0800
Subject: [PATCH] +3d  2.5d

---
 src/components/mobileGoTo/index.vue |   39 ++++++++++++++++++++++++++++++---------
 1 files changed, 30 insertions(+), 9 deletions(-)

diff --git a/src/components/mobileGoTo/index.vue b/src/components/mobileGoTo/index.vue
index 9122866..3aaf38a 100644
--- a/src/components/mobileGoTo/index.vue
+++ b/src/components/mobileGoTo/index.vue
@@ -1,7 +1,9 @@
 <template>
   <div v-show="openmobileGoTo" class="mobileGoTo">
-    <el-input v-model="lnt"></el-input>
-    <el-input v-model="lat"></el-input>
+    <el-input v-model="height"></el-input>
+    <el-input v-model="heading"></el-input>
+    <el-input v-model="pitch"></el-input>
+    <el-input v-model="roll"></el-input>
     <!-- <el-input v-model="alt"></el-input> -->
     <el-button type="primary" @click="submitForm('')">跳转</el-button>
   </div>
@@ -18,6 +20,8 @@
       "query",
       "MobileWindowChangeData",
       "ccDataState",
+      "perspectiveControls",
+      "perspectiveControl",
     ]),
   },
   data() {
@@ -25,6 +29,10 @@
       lnt: "121.53772514948211",
       lat: "31.23938286341316",
       alt: "90.648862227",
+      height: 800,
+      heading: 0,
+      pitch: -45,
+      roll: 0,
     };
   },
   watch: {
@@ -36,21 +44,34 @@
       this.lnt = this.query.lntLat[0];
       this.lat = this.query.lntLat[1];
     },
+    perspectiveControls() {
+      this.height = this.perspectiveControl.height;
+      this.heading = this.perspectiveControl.heading;
+      this.pitch = this.perspectiveControl.pitch;
+      this.roll = this.perspectiveControl.roll;
+    },
   },
   methods: {
     submitForm() {
       if (this.lnt && this.lat) {
         let that = this;
         // 定制化窗体
-        let position = {};
-        let lntLat = [that.lnt, that.lat];
+        // let position = {};
+        // let lntLat = [that.lnt, that.lat];
+        // let d = {
+        //   position,
+        //   lntLat,
+        //   query: { position, lntLat },
+        //   useJWD: true, //仅使用经纬度
+        // };
+        // that.$store.dispatch("setMobileWindows", d);
         let d = {
-          position,
-          lntLat,
-          query: { position, lntLat },
-          useJWD: true, //仅使用经纬度
+          height: this.height,
+          heading: this.heading,
+          pitch: this.pitch,
+          roll: this.roll,
         };
-        that.$store.dispatch("setMobileWindows", d);
+        that.$store.dispatch("MSET_GOTOCC", d);
       }
     },
   },

--
Gitblit v1.9.3