【表单发布】表单发布时,栅格布局中字段重复问题修改
parent
41533b2cb2
commit
dea823ca5e
|
|
@ -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)
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue