perf(视图): 色彩地图放大点击不提示无钻取字段

This commit is contained in:
fit2cloud-chenyw 2023-07-20 12:19:52 +08:00
parent 9cd170e55c
commit 64ac36b029

View File

@ -481,9 +481,11 @@ export default {
trackClick(trackAction) {
const param = this.pointParam
if (!param || !param.data || !param.data.dimensionList) {
//
if (this.chart.type === 'map') {
this.$warning(this.$t('panel.no_drill_field'))
const zoom = this.myChart.getOption().geo[0].zoom
if (zoom <= 1) {
this.$warning(this.$t('panel.no_drill_field'))
}
}
return
}