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) } });