forked from github/dataease
Merge pull request #4162 from dataease/pr@dev@fix_mark_map_field
fix(地图): 指标字段可以添加到经纬度
This commit is contained in:
commit
5105b5be2c
@ -178,13 +178,18 @@ export default {
|
|||||||
addLocationXaxis(e) {
|
addLocationXaxis(e) {
|
||||||
this.dragCheckType(this.busiFieldMap.locationXaxis, 'd')
|
this.dragCheckType(this.busiFieldMap.locationXaxis, 'd')
|
||||||
this.dragMoveDuplicate(this.busiFieldMap.locationXaxis, e)
|
this.dragMoveDuplicate(this.busiFieldMap.locationXaxis, e)
|
||||||
this.busiFieldMap.locationXaxis = [this.busiFieldMap.locationXaxis[0]]
|
if (this.busiFieldMap.locationXaxis?.length) {
|
||||||
|
this.busiFieldMap.locationXaxis = [this.busiFieldMap.locationXaxis[0]]
|
||||||
|
}
|
||||||
|
|
||||||
this.calcData(true)
|
this.calcData(true)
|
||||||
},
|
},
|
||||||
addLocationYaxis(e) {
|
addLocationYaxis(e) {
|
||||||
this.dragCheckType(this.busiFieldMap.locationYaxis, 'd')
|
this.dragCheckType(this.busiFieldMap.locationYaxis, 'd')
|
||||||
this.dragMoveDuplicate(this.busiFieldMap.locationYaxis, e)
|
this.dragMoveDuplicate(this.busiFieldMap.locationYaxis, e)
|
||||||
this.busiFieldMap.locationYaxis = [this.busiFieldMap.locationYaxis[0]]
|
if (this.busiFieldMap.locationYaxis?.length) {
|
||||||
|
this.busiFieldMap.locationYaxis = [this.busiFieldMap.locationYaxis[0]]
|
||||||
|
}
|
||||||
this.calcData(true)
|
this.calcData(true)
|
||||||
},
|
},
|
||||||
locationXItemRemove(item) {
|
locationXItemRemove(item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user