提交 819a083b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

feat: 气泡地图国际化

上级 fe01f43d
...@@ -164,9 +164,7 @@ export default { ...@@ -164,9 +164,7 @@ export default {
sourceCustomStyleStr: null sourceCustomStyleStr: null
} }
}, },
mounted() {
this.bindPluginEvent()
},
computed: { computed: {
scaleCoefficient() { scaleCoefficient() {
if (this.terminal === 'pc' && !this.mobileLayoutStatus) { if (this.terminal === 'pc' && !this.mobileLayoutStatus) {
...@@ -351,6 +349,9 @@ export default { ...@@ -351,6 +349,9 @@ export default {
deep: true deep: true
} }
}, },
mounted() {
this.bindPluginEvent()
},
created() { created() {
this.refId = uuid.v1 this.refId = uuid.v1
...@@ -362,10 +363,17 @@ export default { ...@@ -362,10 +363,17 @@ export default {
}, },
methods: { methods: {
bindPluginEvent() { bindPluginEvent() {
bus.$on('plugin-chart-click', this.chartClick) bus.$on('plugin-chart-click', param => {
bus.$on('plugin-jump-click', this.jumpClick) param.viewId && param.viewId === this.element.propValue.viewId && this.chartClick(param)
bus.$on('plugin-add-view-track-filter', this.addViewTrackFilter) })
bus.$on('plugin-jump-click', param => {
param.viewId && param.viewId === this.element.propValue.viewId && this.jumpClick(param)
})
bus.$on('plugin-add-view-track-filter', param => {
param.viewId && param.viewId === this.element.propValue.viewId && this.addViewTrackFilter(param)
})
}, },
addViewTrackFilter(linkageParam) { addViewTrackFilter(linkageParam) {
this.$store.commit('addViewTrackFilter', linkageParam) this.$store.commit('addViewTrackFilter', linkageParam)
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论