From b2fdf4f25251229adbe9a6963cb35fb7fc868172 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期二, 02 一月 2024 18:29:14 +0800 Subject: [PATCH] GLB模型添加.修改,删除 --- src/components/right/right-bottom.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/right/right-bottom.vue b/src/components/right/right-bottom.vue index d6534fa..a7f33c7 100644 --- a/src/components/right/right-bottom.vue +++ b/src/components/right/right-bottom.vue @@ -36,7 +36,7 @@ popper-class="item_tooltip" > <div class="legend-bg" @click="fovViewer"> - <img class="dwImg" src="@/assets/img/new/location.png" /> + <img class="dwImg" src="@/assets/img/new/mapSplit.png" /> </div> </el-tooltip> </div> @@ -303,6 +303,7 @@ let _index = 0; import rightLegend from "./right-legend"; import Bus from "../tools/Bus"; +import { mapState, mapMutations } from "vuex"; export default { name: "right-bottom", components: { @@ -339,7 +340,11 @@ isActive: true, }; }, + computed: { + ...mapState(["viewer1Show", "isLand", "yqfk", "qyEchartsShow"]), + }, mounted() { + //鍏抽棴鎴戠殑璧勬簮寮圭獥 Bus.$on("closeLegendPop", (data) => { if (data) { @@ -351,6 +356,7 @@ Bus.$off("closeLegendPop"); }, methods: { + ...mapMutations(["setViewer1Show", "setqyEchartsShow"]), // 鐩告満鍙傛暟 getcamera() { let p = sgworld.Navigate.getCameraInfo(); @@ -405,13 +411,14 @@ } }, fovViewer() { - this.isWideAngle = !this.isWideAngle; - if (this.isWideAngle) { - this.wideAngle = window.Viewer.camera.frustum.fov; - window.Viewer.camera.frustum.fov = 2; - } else { - window.Viewer.camera.frustum.fov = this.wideAngle; - } + this.setViewer1Show(!this.viewer1Show); + // this.isWideAngle = !this.isWideAngle; + // if (this.isWideAngle) { + // this.wideAngle = window.Viewer.camera.frustum.fov; + // window.Viewer.camera.frustum.fov = 2; + // } else { + // window.Viewer.camera.frustum.fov = this.wideAngle; + // } }, flyBack() { sgworld.Navigate.flyToPointsInterest({ -- Gitblit v1.9.3