From ffbe1d38426e3730189eba2df5f51ad52c444952 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Tue, 10 Sep 2024 18:31:55 +0800 Subject: [PATCH] =?UTF-8?q?9.10=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3?= =?UTF-8?q?=E7=A6=85=E9=81=93=E8=BF=AD=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/web/common.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/hooks/web/common.ts b/src/hooks/web/common.ts index 37f4db94..e2c4d26b 100644 --- a/src/hooks/web/common.ts +++ b/src/hooks/web/common.ts @@ -134,10 +134,9 @@ export function updateFormItem(updateSchema, formNo) { } // 返回表格查询的参数 multipleList(需要多选查询的字段名数组) -export function formatParams(params = {}, equal: any = [], otherQuery: any = []) { +export function formatParams(params = {}, equal:any = []) { const postData = { queryCondition: '', - otherQueryCondition: {}, pageCondition: { pageIndex: params?.page, pageSize: params?.pageSize, @@ -146,17 +145,8 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = []) } const conditions = [] as any for (let key in params) { - let IsContinue = true - if (otherQuery.length) { - otherQuery.forEach((item) => { - if (key == item) { - IsContinue = false - postData.otherQueryCondition[key]=params[key] - } - }) - } // 排除不是分页排序等字段 - if (IsContinue && key != 'page' && key != 'pageSize' && key != 'order' && key != 'field') { + if (key != 'page' && key != 'pageSize' && key != 'order' && key != 'field') { if (key == 'advancedSearchParams') { // 高级查询 conditions.push(params[key])