From 78064c2072b8c7eb36309045a6166292917f491b Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期三, 15 十一月 2023 14:39:10 +0800 Subject: [PATCH] 初始化、土地管理视角 --- src/components/menu/bottom-menu.vue | 159 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 117 insertions(+), 42 deletions(-) diff --git a/src/components/menu/bottom-menu.vue b/src/components/menu/bottom-menu.vue index 288b38e..ef3ff87 100644 --- a/src/components/menu/bottom-menu.vue +++ b/src/components/menu/bottom-menu.vue @@ -1,6 +1,9 @@ <template> <div class="specialTool"> - <div class="bottomwrapper" :class="{ 'top-btn-active': viewer1Show && isLand }"> + <div + class="bottomwrapper" + :class="{ 'top-btn-active': viewer1Show && isLand }" + > <div class="imgbox" @click="tdglHandle"> <img src="@assets/img/new/tudiguanli.png" alt="" /> </div> @@ -9,7 +12,11 @@ </div> </div> - <div class="bottomwrapper" @click="historyHandle" :class="{ 'top-btn-active': viewer1Show && !isLand }"> + <div + class="bottomwrapper" + @click="historyHandle" + :class="{ 'top-btn-active': viewer1Show && !isLand }" + > <div class="imgbox"> <img src="@assets/img/new/chengshigengxin.png" alt="" /> </div> @@ -25,14 +32,29 @@ <div class="textbox"> <span> 缁煎悎鎵╁睍 </span> </div> - <el-dropdown-menu slot="dropdown" :append-to-body="false" class="popper-dropdown"> - <el-dropdown-item command="stdsjHandle">瑙嗗浘澶ф暟鎹钩鍙�</el-dropdown-item> - <el-dropdown-item command="bzdSystem">鏍囧噯鍦扮洃绠″钩鍙�</el-dropdown-item> - <el-dropdown-item v-if="isShowSPJK" command="spjkHandle">瑙嗛闆嗘垚涓庡彲瑙嗗寲</el-dropdown-item> - <el-dropdown-item v-else command="closeSpjk">鍏抽棴瑙嗛鐐逛綅鍒嗗竷</el-dropdown-item> - <el-dropdown-item v-if="isShowSjxl" command="sjxlHandle">鎵嬫満淇′护鐑姏鍒嗗竷</el-dropdown-item> - <el-dropdown-item v-else command="closeSjxl">鍏抽棴淇′护鐑姏鍒嗗竷</el-dropdown-item> - <el-dropdown-item command="csgxHandle">鍩庡競鏇存柊</el-dropdown-item> + <el-dropdown-menu + slot="dropdown" + :append-to-body="false" + class="popper-dropdown" + > + <el-dropdown-item command="stdsjHandle" + >瑙嗗浘澶ф暟鎹钩鍙�</el-dropdown-item + > + <el-dropdown-item command="bzdSystem" + >鏍囧噯鍦扮洃绠″钩鍙�</el-dropdown-item + > + <el-dropdown-item v-if="isShowSPJK" command="spjkHandle" + >瑙嗛闆嗘垚涓庡彲瑙嗗寲</el-dropdown-item + > + <el-dropdown-item v-else command="closeSpjk" + >鍏抽棴瑙嗛鐐逛綅鍒嗗竷</el-dropdown-item + > + <el-dropdown-item v-if="isShowSjxl" command="sjxlHandle" + >鎵嬫満淇′护鐑姏鍒嗗竷</el-dropdown-item + > + <el-dropdown-item v-else command="closeSjxl" + >鍏抽棴淇′护鐑姏鍒嗗竷</el-dropdown-item + > </el-dropdown-menu> </el-dropdown> </div> @@ -44,11 +66,19 @@ <div class="textbox"> <span> 绮炬ā绀鸿寖 </span> </div> - <el-dropdown-menu slot="dropdown" :append-to-body="false" class="popper-dropdown"> + <el-dropdown-menu + slot="dropdown" + :append-to-body="false" + class="popper-dropdown" + > <el-dropdown-item command="fcfhHandle">鍒嗗眰鍒嗘埛</el-dropdown-item> <!-- <el-dropdown-item command="sprhHandle">鍦烘櫙瑙嗛铻嶅悎</el-dropdown-item> --> - <el-dropdown-item v-if="isShowSPRH" command="jiqirendahui">鍦烘櫙瑙嗛铻嶅悎</el-dropdown-item> - <el-dropdown-item v-else command="jiqirendahui">鍏抽棴瑙嗛铻嶅悎</el-dropdown-item> + <el-dropdown-item v-if="isShowSPRH" command="jiqirendahui" + >鍦烘櫙瑙嗛铻嶅悎</el-dropdown-item + > + <el-dropdown-item v-else command="jiqirendahui" + >鍏抽棴瑙嗛铻嶅悎</el-dropdown-item + > </el-dropdown-menu> </el-dropdown> </div> @@ -63,33 +93,62 @@ @input="updateVideo" > </el-slider> --> - <el-slider :min="0" :max="360" v-model="robotVideoList[3].heading" @input="updateVideo"> + <el-slider + :min="0" + :max="360" + v-model="robotVideoList[3].heading" + @input="updateVideo" + > </el-slider> </el-form-item> <el-form-item label="淇话瑙掑害:"> - <el-slider :min="-89" :max="89" v-model="robotVideoList[3].pitch" @input="updateVideo"> + <el-slider + :min="-89" + :max="89" + v-model="robotVideoList[3].pitch" + @input="updateVideo" + > </el-slider> </el-form-item> <el-form-item label="姘村钩瑙嗚:"> - <el-slider :min="30" :max="120" v-model="robotVideoList[3].horizonAngle" @input="updateVideo"> + <el-slider + :min="30" + :max="120" + v-model="robotVideoList[3].horizonAngle" + @input="updateVideo" + > </el-slider> </el-form-item> <el-form-item label="鍨傜洿瑙嗚:"> - <el-slider :min="30" :max="120" v-model="robotVideoList[3].verticalAngle" @input="updateVideo"> + <el-slider + :min="30" + :max="120" + v-model="robotVideoList[3].verticalAngle" + @input="updateVideo" + > </el-slider> </el-form-item> <el-form-item label="鏈�杩滄姇灏�:"> - <el-slider :min="100" :max="300" v-model="robotVideoList[3].far" @input="updateVideo"> + <el-slider + :min="100" + :max="300" + v-model="robotVideoList[3].far" + @input="updateVideo" + > </el-slider> </el-form-item> <el-form-item label="閫忔槑搴�:"> - <el-slider :step="0.1" :min="0" :max="1" v-model="robotVideoList[3].alpha" @input="updateVideo"> + <el-slider + :step="0.1" + :min="0" + :max="1" + v-model="robotVideoList[3].alpha" + @input="updateVideo" + > </el-slider> </el-form-item> </el-form> </div> - - </div> </template> @@ -180,7 +239,6 @@ background: rgba(14, 50, 143, 0.6); box-shadow: 0px 0px 9px 3px rgba(20, 105, 233, 0.7) inset; text-align: center; - left: -36.5% !important; width: 155px; border: none; } @@ -190,11 +248,13 @@ } .csbj .el-dropdown-menu { - top: -215px !important; + top: -180px !important; + left: -30.5% !important; } .jxmx .el-dropdown-menu { top: -110px !important; + left: -26.5% !important; } .el-dropdown-menu /deep/ .el-dropdown-menu__item { @@ -207,19 +267,22 @@ } .csbj .el-popper /deep/ .popper__arrow::after { + margin: 0; border-top-color: rgba(14, 50, 143, 0.6); border-top-width: 6px; border-bottom-width: 0; - top: 201px; - left: 37px; + top: 166px; + left: 31px; } .jxmx .el-popper /deep/ .popper__arrow::after { + margin: 0; + border-top-color: rgba(14, 50, 143, 0.6); border-top-width: 6px; border-bottom-width: 0; top: 96px; - left: -26px; + left: -32px; } .el-dropdown-menu__item:focus, @@ -315,7 +378,6 @@ far: 3000, cameraIndexCode: "2b046ef675704975a8d45f1b00cd946b", }, - ], robotVideoList: [ { @@ -431,9 +493,6 @@ }, handleCommand(command) { switch (command) { - case "qytj": - this.qytj(); - break; case "spjkHandle": this.spjkHandle(); break; @@ -458,9 +517,6 @@ case "closeSjxl": this.closeSjxl(); break; - case "csgxHandle": - this.csgxHandle(); - break; case "jiqirendahui": this.jiqirendahui(this.robotVideoList); break; @@ -468,7 +524,7 @@ }, historyHandle() { if (this.isLand) { - this.$parent.changeMode('褰卞儚搴曞浘'); + this.$parent.changeMode("褰卞儚搴曞浘"); if (!this.viewer1Show) { window.loading = this.$loading({ lock: true, @@ -481,7 +537,7 @@ this.setViewer1Show(true); } else { if (!this.viewer1Show) { - this.$parent.changeMode('褰卞儚搴曞浘'); + this.$parent.changeMode("褰卞儚搴曞浘"); window.loading = this.$loading({ lock: true, text: "褰卞儚瀵规瘮鍔熻兘鍔犺浇涓紝璇风◢鍚�", @@ -496,6 +552,19 @@ tdglHandle() { if (!this.isLand) { if (!this.viewer1Show) { + let p = sgworld.Navigate.getCameraInfo(); + sgworld.Navigate.flyToPointsInterest({ + destination: new Cesium.Cartesian3.fromDegrees( + p.location.lon, + p.location.lat, + p.location.height + ), + orientation: { + heading: Cesium.Math.toRadians(0), + pitch: Cesium.Math.toRadians(-90), + roll: Cesium.Math.toRadians(0), + }, + }); window.loading = this.$loading({ lock: true, text: "鍦熷湴绠$悊鍔熻兘鍔犺浇涓紝璇风◢鍚�", @@ -507,6 +576,19 @@ this.setViewer1Show(true); } else { if (!this.viewer1Show) { + let p = sgworld.Navigate.getCameraInfo(); + sgworld.Navigate.flyToPointsInterest({ + destination: new Cesium.Cartesian3.fromDegrees( + p.location.lon, + p.location.lat, + p.location.height + ), + orientation: { + heading: Cesium.Math.toRadians(0), + pitch: Cesium.Math.toRadians(-90), + roll: Cesium.Math.toRadians(0), + }, + }); window.loading = this.$loading({ lock: true, text: "鍦熷湴绠$悊鍔熻兘鍔犺浇涓紝璇风◢鍚�", @@ -575,13 +657,6 @@ // historyHandle() { // this.$store.commit("showHistory", true); // }, - csgxHandle() { - Bus.$emit("openMyResourcePop", true); - }, - qytj() { - this.setqyEchartsShow(!this.qyEchartsShow); - }, - sceneRoaming() { if (this.showFlag) { document.getElementById("scroll").style.display = "none"; -- Gitblit v1.9.3