From 6d31f5dbd15517c2aa1c1a0e1c5afb04290f7af0 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期一, 12 四月 2021 14:55:18 +0800 Subject: [PATCH] 弹框问题修改 --- src/components/panel/ToolBoxPanel.vue | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue index 9733c83..1e62696 100644 --- a/src/components/panel/ToolBoxPanel.vue +++ b/src/components/panel/ToolBoxPanel.vue @@ -96,6 +96,9 @@ // 娴嬮噺鐨勬柟娉� import Measure from '@/components/plugin/MeaSure' +// +import bus from '@/eventBus' + export default { name: 'ToolBoxPanel', components: { @@ -263,7 +266,19 @@ ] } }, + mounted () { + /* import bus from '@/eventBus' */ + const that = this + bus.$on('changeState', function (state) { + if (state.num !== 1 && state.type) { + that.selectGroup = false + that.isShow = [] + that.active = -1 + } + }) + }, methods: { + init (map) { this.map = map this.toolBoxPanelVisible = true @@ -391,6 +406,11 @@ this.isShow = !this.isShow this.active = -1 } + const state = { + type: this.selectGroup, + num: 1 + } + bus.$emit('changeState', state) } } } -- Gitblit v1.8.0