From f9e2ddb23b4d44f1e91ed89776c039cfee5ad24e Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Mon, 27 May 2024 16:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=9D=A1=E4=BB=B6=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchTable/src/SearchTable.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index e0d7a9e15..084a68806 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -159,12 +159,13 @@ const searchFormClick = (searchData) => { if (searchConditionRef.value.filters) { searchData.filters = searchConditionRef.value.filters } else { + searchData.filters = [] Object.keys(searchConditionRef.value).forEach(key => { - searchData.filters = [{ + searchData.filters.push({ action: "==", column: key, value: searchConditionRef.value[key] - }] + }) }); } }