From 14695c01eb2b4d36ae3c9867b72bb96eb63e2c45 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 29 May 2024 12:42:44 +0800 Subject: [PATCH 1/6] =?UTF-8?q?chore(X-Pack):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E4=B8=BB=E5=B7=A5=E7=A8=8B=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- de-xpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de-xpack b/de-xpack index bb62e69151..4f83c4df67 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit bb62e69151febc7a98ed7865298cddbadb072248 +Subproject commit 4f83c4df67befbd90eb219b2d6d04c04e213179f From db98be4e7c5a000fd6f659e63fe8bebe9f132a17 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 29 May 2024 14:01:18 +0800 Subject: [PATCH 2/6] =?UTF-8?q?refactor(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=BC=8F=E4=BA=A4=E4=BA=92=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/ViewWrapper.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/core-frontend/src/pages/panel/ViewWrapper.vue b/core/core-frontend/src/pages/panel/ViewWrapper.vue index 480b94a33a..c5bd609de2 100644 --- a/core/core-frontend/src/pages/panel/ViewWrapper.vue +++ b/core/core-frontend/src/pages/panel/ViewWrapper.vue @@ -34,9 +34,9 @@ const winMsgHandle = event => { const msgInfo = event.data // 校验targetSourceId if (msgInfo && msgInfo.type === 'attachParams' && msgInfo.targetSourceId === state.chartId + '') { - const attachParam = msgInfo.params - if (attachParam) { - dvMainStore.addOuterParamsFilter(attachParam, state.canvasDataPreview, 'outer') + const attachParams = msgInfo.params + if (attachParams) { + dvMainStore.addOuterParamsFilter(attachParams, state.canvasDataPreview, 'outer') } } } @@ -59,7 +59,7 @@ onBeforeMount(async () => { window.addEventListener('message', winMsgHandle) // 添加外部参数 - let attachParam + let attachParams await getOuterParamsInfo(embeddedStore.dvId).then(rsp => { dvMainStore.setNowPanelOuterParamsInfo(rsp.data) }) @@ -68,7 +68,7 @@ onBeforeMount(async () => { if (embeddedStore.outerParams) { try { const outerPramsParse = JSON.parse(embeddedStore.outerParams) - attachParam = outerPramsParse.attachParam + attachParams = outerPramsParse.attachParams dvMainStore.setEmbeddedCallBack(outerPramsParse.callBackFlag || 'no') } catch (e) { console.error(e) @@ -91,8 +91,8 @@ onBeforeMount(async () => { state.canvasViewInfoPreview = canvasViewInfoPreview state.dvInfo = dvInfo state.curPreviewGap = curPreviewGap - if (attachParam) { - dvMainStore.addOuterParamsFilter(attachParam, canvasDataResult) + if (attachParams) { + dvMainStore.addOuterParamsFilter(attachParams, canvasDataResult) } viewInfo.value = canvasViewInfoPreview[embeddedStore.chartId] From d679352f8a214a93ce6af2dcb99ffa8a09296fe1 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 29 May 2024 14:09:25 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcalcite=E8=A7=A3?= =?UTF-8?q?=E6=9E=90SQL=E5=8D=95=E5=BC=95=E5=8F=B7=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/dataease/engine/utils/SQLUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-backend/src/main/java/io/dataease/engine/utils/SQLUtils.java b/core/core-backend/src/main/java/io/dataease/engine/utils/SQLUtils.java index d385c5e748..819fcd5d5f 100644 --- a/core/core-backend/src/main/java/io/dataease/engine/utils/SQLUtils.java +++ b/core/core-backend/src/main/java/io/dataease/engine/utils/SQLUtils.java @@ -7,7 +7,7 @@ import java.util.Optional; */ public class SQLUtils { public static String transKeyword(String value) { - return Optional.ofNullable(value).orElse("").replaceAll("'", "\\\\'"); + return Optional.ofNullable(value).orElse("").replaceAll("'", "''"); } public static String buildOriginPreviewSql(String sql, int limit, int offset) { From ba85c2ca0f5451b188ea91e539943edde0740671 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 29 May 2024 14:30:56 +0800 Subject: [PATCH 4/6] =?UTF-8?q?feat(=E7=A7=BB=E5=8A=A8=E7=AB=AF):=20?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=88=97=E8=A1=A8=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E3=80=81=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/mobile/directory/index.vue | 120 +++++++++++++++++- 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/mobile/directory/index.vue b/core/core-frontend/src/views/mobile/directory/index.vue index 816d4134a1..17a2744150 100644 --- a/core/core-frontend/src/views/mobile/directory/index.vue +++ b/core/core-frontend/src/views/mobile/directory/index.vue @@ -1,16 +1,19 @@