From c4da8378d309ceb994976080015a8b07fb86be3e Mon Sep 17 00:00:00 2001 From: taojinlong Date: Fri, 30 May 2025 09:37:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:sql=E6=95=B0=E6=8D=AE=E9=9B=86=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E6=8F=90=E7=A4=BA=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/locales/en.ts | 2 +- core/core-frontend/src/locales/tw.ts | 2 +- core/core-frontend/src/locales/zh-CN.ts | 2 +- .../src/views/visualized/data/dataset/form/AddSql.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index a5044b9b57..4179b17362 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -2107,7 +2107,7 @@ export default { select_year: 'Select year', sql_variable_limit_1: '1. SQL variables can only be used in WHERE conditions', sql_variable_limit_2: - "2. select * from table where $DE_PARAM{'{'} name = '$[PARAM1]' {'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", + "2. select * from table where $DE_PARAM{'{'} name = substring('$[PARAM1]',1,5){'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", select_month: 'Select month', select_date: 'Select date', select_time: 'Select time', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 71c977eb90..6110b9136f 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -2048,7 +2048,7 @@ export default { select_year: '選擇年', sql_variable_limit_1: '1、SQL 變數只能在WHERE 條件中使用', sql_variable_limit_2: - "2、範例: select * from table where $DE_PARAM{'{'} name = '$[PARAM1]' {'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", + "2、範例: select * from table where $DE_PARAM{'{'} name = substring('$[PARAM1]',1,5){'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", select_month: '選擇月', select_date: '選擇日期', select_time: '選擇時間', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 51cab515df..a96eb2fdd4 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2054,7 +2054,7 @@ export default { select_year: '选择年', sql_variable_limit_1: '1、SQL 变量只能在 WHERE 条件中使用', sql_variable_limit_2: - "2、示例: select * from table where $DE_PARAM{'{'} name = '$[PARAM1]' {'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", + "2、示例: select * from table where $DE_PARAM{'{'} name = substring('$[PARAM1]',1,5){'}'} and $DE_PARAM{'{'} name in ($[PARAM2]) {'}'}", select_month: '选择月', select_date: '选择日期', select_time: '选择时间', diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/AddSql.vue b/core/core-frontend/src/views/visualized/data/dataset/form/AddSql.vue index be8f233d84..ae3858074a 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/AddSql.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/AddSql.vue @@ -1681,7 +1681,7 @@ const mousedownDrag = () => { } .content { - height: 62px; + height: 80px; width: 822px; border-radius: 4px; background: #e1eaff;