From 70935f80697588a0c53c8414d3a8d2c636c23bd4 Mon Sep 17 00:00:00 2001 From: junjie Date: Thu, 19 Aug 2021 15:34:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20db=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8E=9F=E8=A1=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/dataset/common/DatasetChartDetail.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/dataset/common/DatasetChartDetail.vue b/frontend/src/views/dataset/common/DatasetChartDetail.vue index e9ff1644ba..6c85c50de7 100644 --- a/frontend/src/views/dataset/common/DatasetChartDetail.vue +++ b/frontend/src/views/dataset/common/DatasetChartDetail.vue @@ -40,6 +40,10 @@

{{ $t('dataset.excel_data') }}

{{ $t('dataset.custom_data') }}

+ +

{{ $t('dataset.table') }}

+

{{ info.table }}

+

{{ $t('dataset.mode') }}

{{ $t('dataset.direct_connect') }}

@@ -105,7 +109,8 @@ export default { chart: {}, table: {}, datasource: {} - } + }, + info: {} } }, watch: { @@ -128,10 +133,12 @@ export default { if (this.type === 'dataset') { post('/dataset/table/datasetDetail/' + this.data.id, null).then(res => { this.detail = res.data + this.info = JSON.parse(res.data.table.info) }) } else if (this.type === 'chart') { post('/chart/view/chartDetail/' + this.data.id, null).then(res => { this.detail = res.data + this.info = JSON.parse(res.data.table.info) }) } }