From 225309d556c988d91cac69c5f408ed9c091fabe1 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 6 Nov 2025 11:42:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8B=E6=8B=89=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=B9=B3=E9=93=BA=E5=B1=95=E7=A4=BA=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=20#13146?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Flat.vue | 95 +++++++++++++++++++ .../v-query/QueryConditionConfiguration.vue | 19 ++++ .../src/custom-component/v-query/Select.vue | 37 +++++++- core/core-frontend/src/locales/en.ts | 3 + core/core-frontend/src/locales/tw.ts | 3 + core/core-frontend/src/locales/zh-CN.ts | 3 + 6 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 core/core-frontend/src/custom-component/v-query/Flat.vue diff --git a/core/core-frontend/src/custom-component/v-query/Flat.vue b/core/core-frontend/src/custom-component/v-query/Flat.vue new file mode 100644 index 0000000000..402a5b043a --- /dev/null +++ b/core/core-frontend/src/custom-component/v-query/Flat.vue @@ -0,0 +1,95 @@ + + + + + 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 bb23cbe19a..d91bc0cf95 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -1784,6 +1784,7 @@ const parameterCompletion = ele => { defaultNumValueEnd: null, numValueEnd: null, numValueStart: null, + displayFormat: 0, timeRange: { intervalType: 'none', dynamicWindow: false, @@ -3438,6 +3439,24 @@ defineExpose({ +
{ return { selectValue: '', + displayFormat: 0, queryConditionWidth: 0, resultMode: 0, defaultValue: '', @@ -657,6 +660,10 @@ const selectStyle = computed(() => { return props.isConfig ? {} : { width: getCustomWidth() + 'px' } }) +const selectStyleFlat = computed(() => { + return props.isConfig ? { width: '415px' } : { width: getCustomWidth() + 'px' } +}) + const mult = ref() const single = ref() @@ -734,6 +741,24 @@ const tagTextWidth = computed(() => { return (getCustomWidth() - 65) / 2 - 20 + 'px' }) +const activeItems = computed(() => { + return Array.isArray(selectValue.value) ? selectValue.value : [selectValue.value] +}) + +const handleItemClick = (item: any) => { + if (multiple.value) { + if (selectValue.value.includes(item)) { + selectValue.value = selectValue.value.filter(ele => ele !== item) + } else { + selectValue.value = [...selectValue.value, item] + } + } else { + selectValue.value = selectValue.value === item ? undefined : item + } + + handleValueChange() +} + const componentClick = () => { mult.value?.blur() single.value?.blur() @@ -754,8 +779,18 @@ defineExpose({