From b4b736de7e382e2f4ce1908672130e5657a402f2 Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 10 Mar 2022 13:34:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=96=87=E6=9C=AC=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/custom-component/UserView.vue | 13 +- frontend/src/icons/svg/label.svg | 2 + frontend/src/lang/en.js | 4 +- frontend/src/lang/tw.js | 4 +- frontend/src/lang/zh.js | 4 +- frontend/src/views/chart/chart/util.js | 14 ++ .../components/normal/LabelNormalText.vue | 180 ++++++++++++++++++ .../components/shape-attr/ColorSelector.vue | 6 +- .../components/shape-attr/SizeSelector.vue | 8 +- .../shape-attr/SizeSelectorAntV.vue | 8 +- frontend/src/views/chart/view/ChartEdit.vue | 28 ++- 11 files changed, 243 insertions(+), 28 deletions(-) create mode 100644 frontend/src/icons/svg/label.svg create mode 100644 frontend/src/views/chart/components/normal/LabelNormalText.vue diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index 4d7cac0222..08e2c7e65e 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -62,6 +62,7 @@ class="table-class" /> +
@@ -90,9 +91,10 @@ import EditBarView from '@/components/canvas/components/Editor/EditBarView' import { customAttrTrans, customStyleTrans, recursionTransObj } from '@/components/canvas/utils/style' import ChartComponentS2 from '@/views/chart/components/ChartComponentS2' import PluginCom from '@/views/system/plugin/PluginCom' +import LabelNormalText from '@/views/chart/components/normal/LabelNormalText' export default { name: 'UserView', - components: { PluginCom, ChartComponentS2, EditBarView, ChartComponent, TableNormal, LabelNormal, DrillPath, ChartComponentG2 }, + components: { LabelNormalText, PluginCom, ChartComponentS2, EditBarView, ChartComponent, TableNormal, LabelNormal, DrillPath, ChartComponentG2 }, props: { element: { type: Object, @@ -184,13 +186,13 @@ export default { return this.active && this.inTab && !this.mobileLayoutStatus }, charViewShowFlag() { - return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.renderComponent() === 'echarts' + return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.chart.type !== 'label' && this.renderComponent() === 'echarts' }, charViewG2ShowFlag() { - return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.renderComponent() === 'antv' + return this.httpRequest.status && this.chart.type && !this.chart.type.includes('table') && !this.chart.type.includes('text') && this.chart.type !== 'label' && this.renderComponent() === 'antv' }, charViewS2ShowFlag() { - return this.httpRequest.status && this.chart.type && this.chart.type.includes('table') && !this.chart.type.includes('text') && this.renderComponent() === 'antv' + return this.httpRequest.status && this.chart.type && this.chart.type.includes('table') && !this.chart.type.includes('text') && this.chart.type !== 'label' && this.renderComponent() === 'antv' }, tableShowFlag() { return this.httpRequest.status && this.chart.type && this.chart.type.includes('table') && this.renderComponent() === 'echarts' @@ -198,6 +200,9 @@ export default { labelShowFlag() { return this.httpRequest.status && this.chart.type && this.chart.type.includes('text') }, + labelTextShowFlag() { + return this.httpRequest.status && this.chart.type && this.chart.type === 'label' + }, loadingFlag() { return (this.canvasStyleData.refreshViewLoading || this.searchCount === 0) && this.requestStatus === 'waiting' }, diff --git a/frontend/src/icons/svg/label.svg b/frontend/src/icons/svg/label.svg new file mode 100644 index 0000000000..227ed39c51 --- /dev/null +++ b/frontend/src/icons/svg/label.svg @@ -0,0 +1,2 @@ + + diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index f5eafb711e..b01fc62e48 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -1056,7 +1056,9 @@ export default { total_pos_top: 'Top', total_pos_bottom: 'Bottom', total_pos_left: 'Left', - total_pos_right: 'Right' + total_pos_right: 'Right', + chart_label: 'Label', + drag_block_label: 'Label' }, dataset: { sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index c9f61df9e1..edd2787ce9 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -1056,7 +1056,9 @@ export default { total_pos_top: '頂部', total_pos_bottom: '底部', total_pos_left: '左側', - total_pos_right: '右側' + total_pos_right: '右側', + chart_label: '文本卡', + drag_block_label: '標簽' }, dataset: { sheet_warn: '有多個 Sheet 頁,默認抽取第一個', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 78022d5387..186cb46870 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -1059,7 +1059,9 @@ export default { total_pos_top: '顶部', total_pos_bottom: '底部', total_pos_left: '左侧', - total_pos_right: '右侧' + total_pos_right: '右侧', + chart_label: '文本卡', + drag_block_label: '标签' }, dataset: { sheet_warn: '有多个 Sheet 页,默认抽取第一个', diff --git a/frontend/src/views/chart/chart/util.js b/frontend/src/views/chart/chart/util.js index 4991c2a24b..e97b22ee84 100644 --- a/frontend/src/views/chart/chart/util.js +++ b/frontend/src/views/chart/chart/util.js @@ -50,6 +50,13 @@ export const TYPE_CONFIGS = [ icon: 'table-pivot' }, + { + render: 'antv', + category: 'chart.chart_type_quota', + value: 'label', + title: 'chart.chart_label', + icon: 'label' + }, { render: 'antv', category: 'chart.chart_type_quota', @@ -189,6 +196,13 @@ export const TYPE_CONFIGS = [ icon: 'table-info' }, + { + render: 'echarts', + category: 'chart.chart_type_quota', + value: 'label', + title: 'chart.chart_label', + icon: 'label' + }, { render: 'echarts', category: 'chart.chart_type_quota', diff --git a/frontend/src/views/chart/components/normal/LabelNormalText.vue b/frontend/src/views/chart/components/normal/LabelNormalText.vue new file mode 100644 index 0000000000..cd4eb3e6d1 --- /dev/null +++ b/frontend/src/views/chart/components/normal/LabelNormalText.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index eaf684e362..e90d82139e 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -3,7 +3,7 @@
- + - + @@ -71,7 +71,7 @@
- +
diff --git a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue index 0a96d990d7..7b9dfafa57 100644 --- a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue @@ -127,21 +127,21 @@ - + - + {{ $t('chart.show') }} - + - + diff --git a/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue b/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue index ebe711e1c2..8138e1105b 100644 --- a/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue +++ b/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue @@ -153,21 +153,21 @@ - + - + {{ $t('chart.show') }} - + - + diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 1f9ec47efd..4557370826 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -311,6 +311,7 @@ {{ $t('chart.area') }} {{ $t('chart.drag_block_treemap_label') }} {{ $t('chart.drag_block_word_cloud_label') }} + {{ $t('chart.drag_block_label') }} / {{ $t('chart.dimension') }} - + {{ $t('chart.drag_block_table_data_column') }} @@ -656,7 +657,7 @@ /> @@ -676,7 +677,7 @@ /> @@ -809,7 +810,7 @@ /> @@ -841,7 +842,7 @@ - +
+
> > .el-tabs__item { font-size: 12px; - padding: 0 60px !important; + padding: 0 40px !important; } .blackTheme .tab-header > > > .el-tabs__item { From fdd314288775b1a4485ccb5125e2de89406e67c9 Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 10 Mar 2022 16:49:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20doris=E5=AE=98=E7=BD=91=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/dataset/data/CalcFieldEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/dataset/data/CalcFieldEdit.vue b/frontend/src/views/dataset/data/CalcFieldEdit.vue index 5b468dc0fa..c4f3e682b8 100644 --- a/frontend/src/views/dataset/data/CalcFieldEdit.vue +++ b/frontend/src/views/dataset/data/CalcFieldEdit.vue @@ -126,7 +126,7 @@
如日期格式化:MySQL使用DATE_FORMAT(date,format);Oracle使用TO_DATE(X,[,fmt])
- 非直连模式数据集,使用Doris数据库函数,可参考Doris官网 http://doris.apache.org/master/zh-CN/ + 非直连模式数据集,使用Doris数据库函数,可参考Doris官网 https://doris.apache.org/zh-CN/
From 3d1c3958f30237c9cc1755d1a697839ebcf0ce1a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 10 Mar 2022 17:10:25 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B71.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/pom.xml | 6 +++--- frontend/pom.xml | 2 +- mobile/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/pom.xml b/backend/pom.xml index 7d1e213fc0..de5cb967ad 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -5,7 +5,7 @@ dataease-server io.dataease - 1.8.0 + 1.9.0 4.0.0 @@ -215,12 +215,12 @@ io.dataease dataease-plugin-interface - 1.8.0 + 1.9.0 io.dataease dataease-plugin-view - 1.8.0 + 1.9.0 cn.hutool diff --git a/frontend/pom.xml b/frontend/pom.xml index 1ca3d3227d..99ccea975c 100644 --- a/frontend/pom.xml +++ b/frontend/pom.xml @@ -6,7 +6,7 @@ dataease-server io.dataease - 1.8.0 + 1.9.0 4.0.0 diff --git a/mobile/pom.xml b/mobile/pom.xml index 9585aafe53..a9cea5fa16 100644 --- a/mobile/pom.xml +++ b/mobile/pom.xml @@ -6,7 +6,7 @@ dataease-server io.dataease - 1.8.0 + 1.9.0 4.0.0 diff --git a/pom.xml b/pom.xml index e59e6851b1..19d17f696d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 io.dataease dataease-server - 1.8.0 + 1.9.0 pom