From 258c2720438c4ba1b50194e20654466a7e8b2ce3 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 20 Nov 2024 16:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=A9=E5=B1=95=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=B2=A1=E6=9C=89=E5=8F=82=E6=95=B0=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 8f771709d..ff144bc90 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -1170,6 +1170,21 @@ const searchFormClick = async (searchData) => { }) } + if (props.tableObjectExtend) { + props.tableObjectExtend.forEach(item => { + let findItem = tableObjectRef.value.params.filters.find(item1=>item1.column == [item.key]) + if(findItem){ + findItem.value = item.value + }else{ + tableObjectRef.value.params.filters.push({ + column : item.key, + action : "==", + value : item.value + }) + } + }) + } + // const { tableObject, tableMethods } = useTable({ // getListApi: props.apiPage // 分页接口