From 908cf414120f28dc365c3ff180fedefe45e9261e Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 10 Aug 2021 17:31:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=86=E5=9B=BE=E4=B8=8B=E9=92=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 56 ++++++++++++--------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 4567f8b0aa..f005563819 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -247,30 +247,6 @@ /> - - - {{ $t('chart.drill') }} - / - {{ $t('chart.dimension') }} - - - - - - -
- {{ $t('chart.placeholder_field') }} -
-
{{ $t('chart.drag_block_table_data_column') }} @@ -404,6 +380,30 @@ {{ $t('chart.placeholder_field') }} + + + {{ $t('chart.drill') }} + / + {{ $t('chart.dimension') }} + + + + + + +
+ {{ $t('chart.placeholder_field') }} +
+
@@ -879,6 +879,13 @@ export default { if (view.type === 'treemap' && trigger === 'chart') { view.customAttr.label.show = true } + if (view.type === 'treemap' || + view.type.includes('table') || + view.type.includes('text') || + view.type.includes('gauge') || + view.type.includes('radar')) { + view.drillFields = [] + } view.customFilter.forEach(function(ele) { if (ele && !ele.filter) { ele.filter = [] @@ -1498,7 +1505,6 @@ export default { }, chartClick(param) { - console.log(param) this.drillClickDimensionList.push({ dimensionList: param.data.dimensionList }) this.getData(this.param.id) },