From 0226a177b85a6d7f68ab99d7ea55e838287bac0f Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期三, 11 十月 2023 11:41:58 +0800 Subject: [PATCH] 底部图例隐藏,layer.json更新 --- src/components/index.vue | 30 +++++++----------------------- 1 files changed, 7 insertions(+), 23 deletions(-) diff --git a/src/components/index.vue b/src/components/index.vue index ddb8f47..25748a1 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -1,11 +1,7 @@ <template> <div class="mapViewer"> - <leftpanel - ref="Left" - v-show="false" - /> - <bottommenu /> - <left-menu v-if="queryShow"></left-menu> + <leftpanel ref="Left" v-show="false" /> + <!-- <bottommenu /> --> <viewer class="mapViewer" /> </div> </template> @@ -13,16 +9,14 @@ <script> import viewer from "@/components/map/viewer"; import leftpanel from "@/components/left/index"; -import bottommenu from "@/components/menu/bottom-menu"; -import leftMenu from "@/components/menu/leftMenu.vue"; -import vueEvents from '@/utils/vueEvent.js' +// import bottommenu from "@/components/menu/bottom-menu"; + export default { name: "index", components: { viewer, leftpanel, - bottommenu, - leftMenu + // bottommenu, }, data() { return { @@ -31,7 +25,6 @@ offset: "0%", tooltipInfo: "璇风◢鍚庛�傘�傘��", tooltipShow: false, - queryShow: false, }; }, mounted() { @@ -39,18 +32,9 @@ this.scale = (100 / size).toFixed(2); this.offset = "-" + ((size - 100) / 2).toFixed(2) + "%"; this.size = size + "%"; - // this.queryShow = rpc.isShow; - vueEvents.$on('queryLayer', (res) => { - this.queryShow = res - }) }, - methods: { - queryShow(res) { - this.queryShow = res; - } - }, - watch: { - }, + + watch: {}, methods: { detectZoom() { var ratio = 0, -- Gitblit v1.9.3