hc_zhufu
刘妍 2024-05-31 14:28:52 +08:00
parent f5e75f44de
commit 98e2711360
2 changed files with 11 additions and 3 deletions

View File

@ -60,7 +60,7 @@
const subTableData = ref([]);
const subTableList: any = ref([]);
const scrollValue = ref();
const masterData = ref([])
const masterData = ref([]);
props.formConfig.forEach((element) => {
console.log(element);
if (element.disabled == false) {
@ -92,7 +92,7 @@
width: 120,
});
subTableData.value.push(element);
}else if(!element.type){
} else if (!element.type && element.ifShow) {
masterData.value.push(element);
}
});
@ -152,7 +152,9 @@
}
saveSubTableList.push(emptyObj);
});
query[subTableId.value] = JSON.stringify(saveSubTableList);
if (subTableId.value) {
query[subTableId.value] = JSON.stringify(saveSubTableList);
}
return query;
} catch (error) {
console.log(error);

View File

@ -139,6 +139,12 @@
item.csType = element.data[currentIndex].csType;
}
});
console.log(item);
if (item.csType == 'int') {
item.componentProps.options.forEach((optionChild) => {
optionChild.value = Number(optionChild.value);
});
}
}
// csType
if (item.type == 'subTable') {