Merge pull request #4162 from dataease/pr@dev@fix_mark_map_field

fix(地图): 指标字段可以添加到经纬度
This commit is contained in:
fit2cloud-chenyw 2022-12-21 21:29:09 +08:00 committed by GitHub
commit 5105b5be2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,13 +178,18 @@ export default {
addLocationXaxis(e) {
this.dragCheckType(this.busiFieldMap.locationXaxis, 'd')
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)
},
addLocationYaxis(e) {
this.dragCheckType(this.busiFieldMap.locationYaxis, 'd')
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)
},
locationXItemRemove(item) {