From 6d86eaba5497ac6a15fd8ef06ab5934d4e2fab59 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 6 Jul 2023 16:31:47 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A2=84=E8=A7=88=E5=A4=8D=E7=94=A8=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E8=A7=86=E5=9B=BE=E6=9C=AA=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/components/editor/ComponentWrapper.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue index 58f49bca1c..9a864b18f9 100644 --- a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue @@ -159,7 +159,8 @@ export default { computed: { chart() { if (this.config.propValue?.viewId) { - return JSON.parse(this.panelViewDetailsInfo[this.config.propValue.viewId]) + const viewInfo = this.panelViewDetailsInfo[this.config.propValue.viewId]; + return viewInfo?JSON.parse(viewInfo):null } return null }, From ede70cd134433d7054f92148f8469dfac381108e Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 10 Jul 2023 15:36:46 +0800 Subject: [PATCH 02/11] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE):=20=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E6=97=B6=E9=97=B4=E5=92=8C=E6=95=B0=E5=80=BC=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=BF=87=E6=BB=A4=E6=97=B6=E6=94=AF=E6=8C=81=E4=B8=8D?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E9=80=89=E9=A1=B9=20#5291?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/filter/QuotaFilterEditor.vue | 7 +++++++ .../chart/components/filter/ResultFilterEditor.vue | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/frontend/src/views/chart/components/filter/QuotaFilterEditor.vue b/frontend/src/views/chart/components/filter/QuotaFilterEditor.vue index 14b037028b..25f1bd4045 100644 --- a/frontend/src/views/chart/components/filter/QuotaFilterEditor.vue +++ b/frontend/src/views/chart/components/filter/QuotaFilterEditor.vue @@ -117,6 +117,13 @@ export default { value: 'ge', label: this.$t('chart.filter_ge') }] + }, + { + label: '', + options: [{ + value: 'not_null', + label: this.$t('chart.filter_not_null') + }] }], logic: '' } diff --git a/frontend/src/views/chart/components/filter/ResultFilterEditor.vue b/frontend/src/views/chart/components/filter/ResultFilterEditor.vue index f9f3c77fdf..73c5c3b8b7 100644 --- a/frontend/src/views/chart/components/filter/ResultFilterEditor.vue +++ b/frontend/src/views/chart/components/filter/ResultFilterEditor.vue @@ -194,6 +194,13 @@ export default { value: 'ge', label: this.$t('chart.filter_ge') }] + }, + { + label: '', + options: [{ + value: 'not_null', + label: this.$t('chart.filter_not_null') + }] } ], valueOptions: [ @@ -226,6 +233,13 @@ export default { value: 'ge', label: this.$t('chart.filter_ge') }] + }, + { + label: '', + options: [{ + value: 'not_null', + label: this.$t('chart.filter_not_null') + }] } ], options: [], From 40ffd8b9ba7af67a0e6d0a329730a12ec2af5a65 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Mon, 10 Jul 2023 16:13:34 +0800 Subject: [PATCH 03/11] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-Excel=E5=AF=BC?= =?UTF-8?q?=E5=87=BA):=20=E4=BF=AE=E5=A4=8D=20echarts=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/utils/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/utils/utils.js b/frontend/src/components/canvas/utils/utils.js index bd262fc4d1..853bc73376 100644 --- a/frontend/src/components/canvas/utils/utils.js +++ b/frontend/src/components/canvas/utils/utils.js @@ -429,7 +429,10 @@ export function getCacheTree(treeName) { } export function exportExcelDownload(chart, snapshot, width, height, loadingWrapper, callBack) { - if (!chart.data?.data?.length) { + if (chart.render === 'antv' && !chart.data?.data?.length) { + return + } + if (chart.type === 'echarts' && !(chart.data?.series?.length && chart.data?.series[0].data?.length)) { return } const fields = JSON.parse(JSON.stringify(chart.data.fields)) From 788b583c6f78b67c4b0055cd5d03e1abc25796b8 Mon Sep 17 00:00:00 2001 From: Wangjiahao <1522128093@qq.com> Date: Tue, 11 Jul 2023 08:06:02 +0800 Subject: [PATCH 04/11] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=81=94=E5=8A=A8=E9=85=8D=E7=BD=AE=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=81=94=E5=8A=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/ext/ExtPanelViewLinkageMapper.xml | 2 +- .../canvas/components/editor/LinkageField.vue | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/backend/src/main/java/io/dataease/ext/ExtPanelViewLinkageMapper.xml b/backend/src/main/java/io/dataease/ext/ExtPanelViewLinkageMapper.xml index 8fcc5c4476..88629926ca 100644 --- a/backend/src/main/java/io/dataease/ext/ExtPanelViewLinkageMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtPanelViewLinkageMapper.xml @@ -61,7 +61,7 @@ dataset_table_field.origin_name, dataset_table_field.`name`, dataset_table_field.de_type - from dataset_table_field where table_id = #{table_id} + from dataset_table_field where dataset_table_field.group_type = 'd' and table_id = #{table_id}