From dea823ca5e2293897abaeba587b80555043cf341 Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Tue, 11 Jun 2024 14:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A1=A8=E5=8D=95=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E3=80=91=E8=A1=A8=E5=8D=95=E5=8F=91=E5=B8=83=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=A0=85=E6=A0=BC=E5=B8=83=E5=B1=80=E4=B8=AD=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/onlineform/formModule/modalDesign.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/demo/onlineform/formModule/modalDesign.vue b/src/views/demo/onlineform/formModule/modalDesign.vue index 84222cde..f8a22a2c 100644 --- a/src/views/demo/onlineform/formModule/modalDesign.vue +++ b/src/views/demo/onlineform/formModule/modalDesign.vue @@ -219,13 +219,13 @@ const arr: any = []; formScheme.value.formInfo.tabList.forEach((item, index) => { item.schemas.forEach((val) => { - if (val.columns) { + if (val.columns && (val.component === "Grid" && val.type === "subTable")) { val.columns.forEach((col) => { col.children.forEach((chil) => { arr.push(chil); }); }); - }else if(val.component){ + }else if(val.component && val.component !== "Grid"){ arr.push(val); } }); @@ -235,13 +235,13 @@ if (formScheme.value.formInfo.tabList && formScheme.value.formInfo.tabList.length == 1) { const arr: any = []; formScheme.value.formInfo.tabList[0].schemas.forEach((item) => { - if (item.columns) { + if (item.columns && (item.component === "Grid" && item.type === "subTable")) { item.columns.forEach((col) => { col.children.forEach((chil) => { arr.push(chil); }); }); - }else if(item.component){ + }else if(item.component && item.component !== "Grid"){ arr.push(item) } });