From cfcbe04cae6ebb41a573601af6fb7521798de461 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 1 Aug 2022 17:21:01 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=8A=A5=E5=91=8A):=20=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E5=8F=91=E9=80=81=E8=A7=86=E5=9B=BE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8C=85=E5=90=AB=E6=97=A0=E6=95=88=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/service/chart/ViewExportExcel.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/dataease/service/chart/ViewExportExcel.java b/backend/src/main/java/io/dataease/service/chart/ViewExportExcel.java index 67f830aee8..ee7cd97324 100644 --- a/backend/src/main/java/io/dataease/service/chart/ViewExportExcel.java +++ b/backend/src/main/java/io/dataease/service/chart/ViewExportExcel.java @@ -104,7 +104,7 @@ public class ViewExportExcel { Object val = row.get(key); if (ObjectUtils.isEmpty(val)) return StringUtils.EMPTY; - return val.toString(); + return filterInvalidDecimal(val.toString()); }).collect(Collectors.toList())).collect(Collectors.toList()); result.setHeads(heads); result.setDatas(details); @@ -112,4 +112,12 @@ public class ViewExportExcel { result.setSheetName(title); return result; } + + private String filterInvalidDecimal(String sourceNumberStr) { + if (StringUtils.isNotBlank(sourceNumberStr) && StringUtils.contains(sourceNumberStr, ".")) { + sourceNumberStr = sourceNumberStr.replaceAll("0+?$", ""); + sourceNumberStr = sourceNumberStr.replaceAll("[.]$", ""); + } + return sourceNumberStr; + } } From ae5cc25d8af8e1dff129f0ecf88bb398ec3f73a3 Mon Sep 17 00:00:00 2001 From: fit2cloudrd Date: Mon, 1 Aug 2022 18:39:05 +0800 Subject: [PATCH 2/4] =?UTF-8?q?style(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E8=AE=BE=E7=BD=AE=E3=80=81=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=80=89=E6=8B=A9=E6=8C=89=E9=92=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=98=E6=9B=B4=20(#2755)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor(仪表板): 主题色更换保留原标题显示方式 * refator(仪表板): 主题色切换,过滤组件默认颜色设置 * refator(仪表板): 主题色切换,适配tab组件 * refactor(仪表板): 符号地图适配主题变化 * style(仪表板): 批量设置、联动设置选择按钮位置变更 Co-authored-by: wangjiahao <1522128093@qq.com> --- frontend/src/components/canvas/components/Editor/EditBar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/EditBar.vue b/frontend/src/components/canvas/components/Editor/EditBar.vue index 387363fd08..1f9efcce4d 100644 --- a/frontend/src/components/canvas/components/Editor/EditBar.vue +++ b/frontend/src/components/canvas/components/Editor/EditBar.vue @@ -101,7 +101,7 @@ export default { }, computed: { showEditPosition() { - if (this.activeModel === 'edit') { + if (this.activeModel === 'edit' && !this.linkageAreaShow && !this.batchOptAreaShow) { const toRight = (this.canvasStyleData.width - this.element.style.left - this.element.style.width) * this.curCanvasScale.scalePointWidth const toLeft = this.element.style.left * this.curCanvasScale.scalePointWidth if (this.barWidth < toRight) { @@ -183,7 +183,7 @@ export default { this.$store.commit('addCurMultiplexingComponent', { 'component': this.element, 'componentId': this.element.id }) } else { // remove - this.$store.commit('removeCurMultiplexingComponentWithId', this.element.id ) + this.$store.commit('removeCurMultiplexingComponentWithId', this.element.id) } }, closePreview() { From 955977ab13789cfd21d28205a84f11392323d2e3 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 1 Aug 2022 20:59:14 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF-=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=88=B0=E5=B0=8F=E6=97=B6=E4=BD=86=E6=98=AF=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=88=86=E9=92=9F=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/widget/DeWidget/DeDate.vue | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 93ef2f6c07..9d2944983e 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -1,9 +1,9 @@