| | |
| | | // 测量的方法 |
| | | import Measure from '@/components/plugin/MeaSure' |
| | | |
| | | // |
| | | import bus from '@/eventBus' |
| | | |
| | | export default { |
| | | name: 'ToolBoxPanel', |
| | | components: { |
| | |
| | | ] |
| | | } |
| | | }, |
| | | 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 |
| | |
| | | this.isShow = !this.isShow |
| | | this.active = -1 |
| | | } |
| | | const state = { |
| | | type: this.selectGroup, |
| | | num: 1 |
| | | } |
| | | bus.$emit('changeState', state) |
| | | } |
| | | } |
| | | } |