From b0a33234e5232afcec3b2ba81cfa0c94fa36d832 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 3 Dec 2024 18:56:49 +0800 Subject: [PATCH 1/8] =?UTF-8?q?style(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F)?= =?UTF-8?q?:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-component/picture-group/PictureGroupUploadAttr.vue | 1 + .../components/editor/editor-senior/components/Threshold.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/core-frontend/src/custom-component/picture-group/PictureGroupUploadAttr.vue b/core/core-frontend/src/custom-component/picture-group/PictureGroupUploadAttr.vue index b698f20922..4afbcf4a3f 100644 --- a/core/core-frontend/src/custom-component/picture-group/PictureGroupUploadAttr.vue +++ b/core/core-frontend/src/custom-component/picture-group/PictureGroupUploadAttr.vue @@ -148,6 +148,7 @@ onBeforeUnmount(() => { Date: Tue, 3 Dec 2024 19:24:52 +0800 Subject: [PATCH 2/8] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E9=98=88=E5=80=BC=E5=91=8A=E8=AD=A6-=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E7=B1=BB=E5=9E=8B=E9=80=89=E6=8B=A9=E7=AD=89?= =?UTF-8?q?=E4=BA=8E=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/manage/ChartViewThresholdManage.java | 14 +++++++++++--- de-xpack | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java index c08d1c2a65..c63c17ae03 100644 --- a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java +++ b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java @@ -413,7 +413,7 @@ public class ChartViewThresholdManage { DatasetTableFieldDTO field = item.getField(); String dataeaseName = field.getDataeaseName(); String value = item.getValue(); - float tempFVal = 0f; + Float tempFVal = StringUtils.equalsAny(value, "min", "max") ? null : 0f; int validLen = 0; for (Map row : rows) { @@ -421,9 +421,17 @@ public class ChartViewThresholdManage { if (ObjectUtils.isEmpty(o)) continue; float fvalue = Float.parseFloat(o.toString()); if (StringUtils.equals("min", value)) { - tempFVal = Math.min(tempFVal, fvalue); + if (ObjectUtils.isEmpty(tempFVal)) { + tempFVal = fvalue; + } else { + tempFVal = Math.min(tempFVal, fvalue); + } } else if (StringUtils.equals("max", value)) { - tempFVal = Math.max(tempFVal, fvalue); + if (ObjectUtils.isEmpty(tempFVal)) { + tempFVal = fvalue; + } else { + tempFVal = Math.max(tempFVal, fvalue); + } } else if (StringUtils.equals("average", value)) { tempFVal += fvalue; validLen++; diff --git a/de-xpack b/de-xpack index 7669a4307a..d72300fcc5 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 7669a4307af32432eb22554f14b819d49c336695 +Subproject commit d72300fcc522eb25360827914057298d5f95dfff From 4b1117fc2bae4ebe272eb357aafb7e7bda313044 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 3 Dec 2024 19:39:58 +0800 Subject: [PATCH 3/8] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F):=20=E9=80=82=E9=85=8D=E5=A4=A7=E5=B1=8F=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/visualization/CanvasOptBar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/components/visualization/CanvasOptBar.vue b/core/core-frontend/src/components/visualization/CanvasOptBar.vue index ea3b5e3af2..9199b4ddf2 100644 --- a/core/core-frontend/src/components/visualization/CanvasOptBar.vue +++ b/core/core-frontend/src/components/visualization/CanvasOptBar.vue @@ -1,6 +1,6 @@