From ddb550af0cfa32c2a88c82164a19754f16f824e8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 2 Apr 2024 17:22:59 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C=E5=9C=A8=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E4=B8=AD=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=BE=9D=E7=84=B6=E5=B1=95=E7=A4=BA=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 6a8884d7e6..6d69d15509 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -474,6 +474,12 @@ const validate = () => { return true } + if (!ele.defaultValueCheck) { + const isMultiple = +ele.displayType === 7 || ele.multiple + ele.selectValue = isMultiple ? [] : undefined + ele.defaultValue = isMultiple ? [] : undefined + } + let displayTypeField = null if ( ele.checkedFields.some(id => { From f131903567aed80999dea969d048f703e547adee Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 2 Apr 2024 17:23:48 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91SQL=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=EF=BC=8C=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=96=87=E6=9C=AC=E6=98=BE=E7=A4=BA=E9=94=99=E4=B9=B1?= =?UTF-8?q?=E7=9A=84bug=20#7968?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 77b4fa2582..7f23df7b3d 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1108,7 +1108,7 @@ export default { select_year: '选择年', sql_variable_limit_1: '1、SQL 变量只能在 WHERE 条件中使用', sql_variable_limit_2: - "2、示例:select * from table_name where column_name1='${'{'}param_name1{'}'}' and column_name2 in (${'{'}param_name2{'}'})", + "2、示例:select * from table_name where col_name1='${'{'}param_name1{'}'}' and col_name2 in (${'{'}param_name2{'}'})", select_month: '选择月', select_date: '选择日期', select_time: '选择时间', From aa26979b1a0c80436be91536d267673ee7c3e591 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 2 Apr 2024 17:24:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=92=E5=BA=8F=E6=8C=89=E9=92=AE=20?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E7=8A=B6=E6=80=81=E4=B8=8D=E5=AF=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/common/DeResourceTree.vue | 143 +++++++++--------- .../src/views/dashboard/MobileConfigPanel.vue | 8 +- .../views/visualized/data/dataset/index.vue | 76 +++++----- .../visualized/data/datasource/index.vue | 77 +++++----- 4 files changed, 139 insertions(+), 165 deletions(-) diff --git a/core/core-frontend/src/views/common/DeResourceTree.vue b/core/core-frontend/src/views/common/DeResourceTree.vue index d5b55fff10..f44b39c55d 100644 --- a/core/core-frontend/src/views/common/DeResourceTree.vue +++ b/core/core-frontend/src/views/common/DeResourceTree.vue @@ -390,6 +390,30 @@ const getDefaultExpandedKeys = () => { } } +const sortList = [ + { + name: '按创建时间升序', + value: 'time_asc' + }, + { + name: '按创建时间降序', + value: 'time_desc', + divided: true + }, + { + name: '按照名称升序', + value: 'name_asc' + }, + { + name: '按照名称降序', + value: 'name_desc' + } +] + +const sortTypeTip = computed(() => { + return sortList.find(ele => ele.value === state.curSortType).name +}) + const sortTypeChange = sortType => { state.resourceTree = treeSort(state.originResourceTree, sortType) state.curSortType = sortType @@ -488,51 +512,35 @@ defineExpose({ - - - - + + + + + + + + @@ -614,42 +622,27 @@ defineExpose({