From 30cbf69ea84e14fc6fad877332cd9eced92ac725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Tue, 20 Jan 2026 20:53:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=96=E9=83=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BD=BF=E7=94=A8=E8=BF=87=E6=BB=A4=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=94=AF=E6=8C=81=E5=85=B3=E8=81=94=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6=E7=9A=84=E5=9B=BE=E8=A1=A8=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=BF=87=E6=BB=A4=E9=80=89=E9=A1=B9=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=20(#17843)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/hooks/web/useFilter.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/hooks/web/useFilter.ts b/core/core-frontend/src/hooks/web/useFilter.ts index ba956a4ad8..7fb9b980af 100644 --- a/core/core-frontend/src/hooks/web/useFilter.ts +++ b/core/core-frontend/src/hooks/web/useFilter.ts @@ -363,10 +363,22 @@ export const searchQuery = (queryComponentList, filter, curComponentId, firstLoa timeGranularity = 'date', displayType, displayId, - multiple + multiple, + optionFilter } = item const isTree = +displayType === 9 + if (optionFilter) { + filter.push({ + filterId: id, + componentId: ele.id, + fieldId: item.checkedFieldsMap[curComponentId], + operator: 'in', + value: optionFilter, + parameters: [], + isTree + }) + } if ( timeType === 'dynamic' &&