forked from github/dataease
Merge pull request #1793 from dataease/pr@dev@feat_bubble_map_i18n
feat: 气泡地图国际化
This commit is contained in:
commit
b5c5bbb5b0
@ -164,9 +164,7 @@ export default {
|
||||
sourceCustomStyleStr: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.bindPluginEvent()
|
||||
},
|
||||
|
||||
computed: {
|
||||
scaleCoefficient() {
|
||||
if (this.terminal === 'pc' && !this.mobileLayoutStatus) {
|
||||
@ -351,6 +349,9 @@ export default {
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.bindPluginEvent()
|
||||
},
|
||||
|
||||
created() {
|
||||
this.refId = uuid.v1
|
||||
@ -362,10 +363,17 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
bindPluginEvent() {
|
||||
bus.$on('plugin-chart-click', this.chartClick)
|
||||
bus.$on('plugin-jump-click', this.jumpClick)
|
||||
bus.$on('plugin-add-view-track-filter', this.addViewTrackFilter)
|
||||
bus.$on('plugin-chart-click', param => {
|
||||
param.viewId && param.viewId === this.element.propValue.viewId && this.chartClick(param)
|
||||
})
|
||||
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) {
|
||||
this.$store.commit('addViewTrackFilter', linkageParam)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user