From d1980bb2a66a1a77aff65364cd9d6528d13d5d8b Mon Sep 17 00:00:00 2001 From: junjie Date: Wed, 26 Jan 2022 17:57:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E6=A0=87=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 272f006aeb..f32461c88f 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1860,29 +1860,29 @@ export default { } }, addXaxis(e) { - if ((this.view.type === 'map' || this.view.type === 'word-cloud') && this.view.xaxis.length > 1) { - this.view.xaxis = [this.view.xaxis[0]] - } if (this.view.type !== 'table-info') { this.dragCheckType(this.view.xaxis, 'd') } this.dragMoveDuplicate(this.view.xaxis, e) + if ((this.view.type === 'map' || this.view.type === 'word-cloud') && this.view.xaxis.length > 1) { + this.view.xaxis = [this.view.xaxis[0]] + } this.calcData(true) }, addYaxis(e) { + this.dragCheckType(this.view.yaxis, 'q') + this.dragMoveDuplicate(this.view.yaxis, e) if ((this.view.type === 'map' || this.view.type === 'waterfall' || this.view.type === 'word-cloud') && this.view.yaxis.length > 1) { this.view.yaxis = [this.view.yaxis[0]] } - this.dragCheckType(this.view.yaxis, 'q') - this.dragMoveDuplicate(this.view.yaxis, e) this.calcData(true) }, addYaxisExt(e) { + this.dragCheckType(this.view.yaxisExt, 'q') + this.dragMoveDuplicate(this.view.yaxisExt, e) if (this.view.type === 'map' && this.view.yaxisExt.length > 1) { this.view.yaxisExt = [this.view.yaxisExt[0]] } - this.dragCheckType(this.view.yaxisExt, 'q') - this.dragMoveDuplicate(this.view.yaxisExt, e) this.calcData(true) }, moveToDimension(e) {