fix: 明细表无法添加指标字段

This commit is contained in:
ulleo 2023-11-23 15:30:54 +08:00
parent 90775b7197
commit d7009f46f8

View File

@ -3207,13 +3207,10 @@ export default {
}
},
addXaxis(e) {
if (this.view.type !== 'table-info' && (this.view.type !== 'scatter' && this.view.render !== 'antv')) {
this.dragCheckType(this.view.xaxis, 'd')
}
this.dragMoveDuplicate(this.view.xaxis, e)
if (this.view.type === 'scatter' && this.view.render === 'antv' && this.view.xaxis[0] && this.view.xaxis[0].groupType === 'q') {
this.view.xaxis = [this.view.xaxis[0]]
} else {
} else if (this.view.type !== 'table-info') {
this.dragCheckType(this.view.xaxis, 'd')
}
if ((this.view.type === 'map' || this.view.type === 'word-cloud' || this.view.type === 'label') && this.view.xaxis.length > 1) {