From 3c87e6b917b86b5dc5210a09169134b6125ca67b Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 27 Jun 2022 14:15:10 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index f4107f066d..1d17a7817c 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -714,7 +714,7 @@ @onFunctionCfgChange="onFunctionCfgChange" /> - + Date: Mon, 27 Jun 2022 14:16:58 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=BB=98=E8=AE=A4=E9=80=89=E9=A1=B9=E5=90=8E?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeDate.vue | 3 +++ .../src/components/widget/DeWidget/DeInputSearch.vue | 5 ++++- .../src/components/widget/DeWidget/DeNumberRange.vue | 7 +++++-- frontend/src/components/widget/DeWidget/DeSelect.vue | 9 ++++++--- frontend/src/components/widget/DeWidget/DeSelectGrid.vue | 3 +++ frontend/src/components/widget/DeWidget/DeSelectTree.vue | 7 +++++-- 6 files changed, 26 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 568ad3d463..83934b8679 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -130,6 +130,9 @@ export default { } }) }, + beforeDestroy() { + bus.$off('reset-default-value') + }, methods: { onBlur() { this.onFocus = false diff --git a/frontend/src/components/widget/DeWidget/DeInputSearch.vue b/frontend/src/components/widget/DeWidget/DeInputSearch.vue index 56987e306c..da83bef29e 100644 --- a/frontend/src/components/widget/DeWidget/DeInputSearch.vue +++ b/frontend/src/components/widget/DeWidget/DeInputSearch.vue @@ -2,12 +2,12 @@
- + {{ $t('denumberrange.split_placeholder') }} - +
@@ -115,6 +115,9 @@ export default { } }) }, + beforeDestroy() { + bus.$off('reset-default-value') + }, methods: { searchWithKey(index) { this.timeMachine = setTimeout(() => { diff --git a/frontend/src/components/widget/DeWidget/DeSelect.vue b/frontend/src/components/widget/DeWidget/DeSelect.vue index 025bfbe66d..cbbceea3f6 100644 --- a/frontend/src/components/widget/DeWidget/DeSelect.vue +++ b/frontend/src/components/widget/DeWidget/DeSelect.vue @@ -37,7 +37,7 @@ import { multFieldValues, linkMultFieldValues } from '@/api/dataset/dataset' import bus from '@/utils/bus' import { getLinkToken, getToken } from '@/utils/auth' import customInput from '@/components/widget/DeWidget/customInput' -import { textSelectWidget } from '@/components/widget/DeWidget/serviceNameFn.js' +import { textSelectWidget } from '@/components/widget/DeWidget/serviceNameFn.js' export default { components: { ElVisualSelect }, @@ -182,6 +182,9 @@ export default { } }) }, + beforeDestroy() { + bus.$off('reset-default-value') + }, methods: { onBlur() { @@ -189,7 +192,7 @@ export default { }, handleElTagStyle() { setTimeout(() => { - textSelectWidget(this.$refs["deSelect"].$el, this.element.style) + textSelectWidget(this.$refs['deSelect'].$el, this.element.style) }, 50) }, initLoad() { @@ -240,12 +243,12 @@ export default { }, setCondition() { - console.log(this.element) const param = { component: this.element, value: this.formatFilterValue(), operator: this.operator } + console.log(param.value) this.inDraw && this.$store.commit('addViewFilter', param) }, formatFilterValue() { diff --git a/frontend/src/components/widget/DeWidget/DeSelectGrid.vue b/frontend/src/components/widget/DeWidget/DeSelectGrid.vue index b94c9af63b..5a66ed6150 100644 --- a/frontend/src/components/widget/DeWidget/DeSelectGrid.vue +++ b/frontend/src/components/widget/DeWidget/DeSelectGrid.vue @@ -211,6 +211,9 @@ export default { } }) }, + beforeDestroy() { + bus.$off('reset-default-value') + }, methods: { changeInputStyle() { diff --git a/frontend/src/components/widget/DeWidget/DeSelectTree.vue b/frontend/src/components/widget/DeWidget/DeSelectTree.vue index 132277d55f..6907204013 100644 --- a/frontend/src/components/widget/DeWidget/DeSelectTree.vue +++ b/frontend/src/components/widget/DeWidget/DeSelectTree.vue @@ -27,7 +27,7 @@ import bus from '@/utils/bus' import { getLinkToken, getToken } from '@/utils/auth' import ElTreeSelect from '@/components/ElTreeSelect' import customInput from '@/components/widget/DeWidget/customInput' -import { textSelectWidget } from '@/components/widget/DeWidget/serviceNameFn.js' +import { textSelectWidget } from '@/components/widget/DeWidget/serviceNameFn.js' export default { components: { ElTreeSelect }, @@ -212,6 +212,9 @@ export default { } }) }, + beforeDestroy() { + bus.$off('reset-default-value') + }, methods: { onFoucs() { @@ -221,7 +224,7 @@ export default { }, change() { setTimeout(() => { - console.log(123, this.$refs.deSelectTree.$refs.select.$el); + console.log(123, this.$refs.deSelectTree.$refs.select.$el) textSelectWidget(this.$refs.deSelectTree.$refs.select.$el, this.element.style) }, 50) }, From 6deecb4569980c5cd88cf72afae7280f6aa99bef Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 27 Jun 2022 15:39:41 +0800 Subject: [PATCH 3/7] =?UTF-8?q?fix:=20=E4=B8=8B=E6=8B=89=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=99=A8=E6=95=B0=E6=8D=AE=E9=87=8F=E5=A4=A7=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ElVisualSelect/index.vue | 10 ++++++++++ frontend/src/components/widget/DeWidget/DeSelect.vue | 5 ++++- .../views/panel/filter/filterMain/FilterControl.vue | 2 -- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ElVisualSelect/index.vue b/frontend/src/components/ElVisualSelect/index.vue index 5338d70b59..3799166a96 100644 --- a/frontend/src/components/ElVisualSelect/index.vue +++ b/frontend/src/components/ElVisualSelect/index.vue @@ -4,8 +4,10 @@ v-model="selectValue" :class="classId" popper-class="VisualSelects" + no-match-text=" " v-bind="$attrs" v-on="$listeners" + @change="visualChange" @visible-change="popChange" > @@ -54,6 +56,9 @@ export default { } }, watch: { + value(val) { + this.selectValue = val + }, selectValue(val) { this.$emit('update', val) if (!val) { @@ -102,6 +107,7 @@ export default { ) this.scrollbar = document.querySelector(`.${this.classId} .el-select-dropdown .el-scrollbar`) this.slectBoxDom = document.querySelector(`.${this.classId} .el-select-dropdown__wrap`) + if (!this.slectBoxDom || !this.slectBoxDom.style) return this.slectBoxDom.style.display = 'flex' this.slectBoxDom.style.flexDirection = 'row' this.domList = selectDom.querySelector( @@ -117,6 +123,7 @@ export default { }, callback() { + if (!this.scrollbar) return const scrollTop = this.scrollbar.scrollTop this.startIndex = parseInt(scrollTop / this.itemHeight) this.endIndex = this.startIndex + this.maxLength @@ -129,6 +136,9 @@ export default { this.resetList() this.reCacularHeight() + }, + visualChange(val) { + this.$emit('visual-change', val) } } diff --git a/frontend/src/components/widget/DeWidget/DeSelect.vue b/frontend/src/components/widget/DeWidget/DeSelect.vue index cbbceea3f6..1cbdf5a8da 100644 --- a/frontend/src/components/widget/DeWidget/DeSelect.vue +++ b/frontend/src/components/widget/DeWidget/DeSelect.vue @@ -17,6 +17,7 @@ @change="changeValue" @focus="setOptionWidth" @blur="onBlur" + @visual-change="visualChange" > Date: Mon, 27 Jun 2022 16:06:42 +0800 Subject: [PATCH 4/7] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/ChartComponentS2.vue | 2 +- frontend/src/views/chart/components/table/TableNormal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/chart/components/ChartComponentS2.vue b/frontend/src/views/chart/components/ChartComponentS2.vue index ed34393e31..839e890a96 100644 --- a/frontend/src/views/chart/components/ChartComponentS2.vue +++ b/frontend/src/views/chart/components/ChartComponentS2.vue @@ -389,7 +389,7 @@ export default { this.myChart.store.set('scrollY', this.scrollTop) this.myChart.render() - if (senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) { + if (senior.scroll && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) { const rowHeight = customAttr.size.tableItemHeight const headerHeight = customAttr.size.tableTitleHeight diff --git a/frontend/src/views/chart/components/table/TableNormal.vue b/frontend/src/views/chart/components/table/TableNormal.vue index 730c5e9f8b..a675b1833d 100644 --- a/frontend/src/views/chart/components/table/TableNormal.vue +++ b/frontend/src/views/chart/components/table/TableNormal.vue @@ -382,7 +382,7 @@ export default { }) }, 0) - if (senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) { + if (senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) { let rowHeight = customAttr.size.tableItemHeight if (rowHeight < 36) { rowHeight = 36 From cbf0391780e6ff7d059f2b1f017052ac4bb1a5c4 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 27 Jun 2022 16:34:31 +0800 Subject: [PATCH 5/7] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/service/chart/util/ChartDataBuild.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/java/io/dataease/service/chart/util/ChartDataBuild.java b/backend/src/main/java/io/dataease/service/chart/util/ChartDataBuild.java index 0a41641748..bff4282568 100644 --- a/backend/src/main/java/io/dataease/service/chart/util/ChartDataBuild.java +++ b/backend/src/main/java/io/dataease/service/chart/util/ChartDataBuild.java @@ -127,6 +127,7 @@ public class ChartDataBuild { } } axisChartDataDTO.setField(a.toString()); + axisChartDataDTO.setName(a.toString()); axisChartDataDTO.setCategory(row[xAxis.size()]); List dimensionList = new ArrayList<>(); @@ -177,6 +178,7 @@ public class ChartDataBuild { for (int i = xAxis.size(); i < xAxis.size() + yAxis.size(); i++) { AxisChartDataAntVDTO axisChartDataDTO = new AxisChartDataAntVDTO(); axisChartDataDTO.setField(a.toString()); + axisChartDataDTO.setName(a.toString()); List dimensionList = new ArrayList<>(); List quotaList = new ArrayList<>(); @@ -232,6 +234,7 @@ public class ChartDataBuild { for (int i = xAxis.size(); i < xAxis.size() + yAxis.size(); i++) { AxisChartDataAntVDTO axisChartDataDTO = new AxisChartDataAntVDTO(); axisChartDataDTO.setField(a.toString()); + axisChartDataDTO.setName(a.toString()); List dimensionList = new ArrayList<>(); List quotaList = new ArrayList<>(); From 03f83d82d5ccd6f89b3469e1681d3c83c26ea910 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 27 Jun 2022 16:49:22 +0800 Subject: [PATCH 6/7] =?UTF-8?q?feat:=20antV=E5=9B=BE=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=81=94=E5=8A=A8=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/CanvasOptBar.vue | 2 + .../canvas/components/Editor/EditBar.vue | 18 +------ .../canvas/custom-component/UserView.vue | 5 ++ frontend/src/store/index.js | 1 - .../src/views/chart/chart/bar/bar_antv.js | 6 --- .../views/chart/chart/funnel/funnel_antv.js | 6 --- .../src/views/chart/chart/line/line_antv.js | 6 --- .../src/views/chart/chart/mix/mix_antv.js | 12 ----- .../src/views/chart/chart/pie/pie_antv.js | 6 --- .../src/views/chart/chart/radar/radar_antv.js | 6 --- .../views/chart/chart/scatter/scatter_antv.js | 6 --- .../views/chart/chart/treemap/treemap_antv.js | 6 --- .../views/chart/chart/waterfall/waterfall.js | 6 --- .../views/chart/chart/wordCloud/word_cloud.js | 6 --- .../chart/components/ChartComponentG2.vue | 51 ++++++++++++++++++- 15 files changed, 58 insertions(+), 85 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/CanvasOptBar.vue b/frontend/src/components/canvas/components/Editor/CanvasOptBar.vue index 9043554a02..1c95b2c34d 100644 --- a/frontend/src/components/canvas/components/Editor/CanvasOptBar.vue +++ b/frontend/src/components/canvas/components/Editor/CanvasOptBar.vue @@ -8,6 +8,7 @@