diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 672beaf..ad03eaa 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -575,7 +575,6 @@ export default { // 校验表头的 HandleFormItem this.columns.forEach((col, colIndex) => { - console.log(col.headerColumns, col, "ttt") if (col.headerSelectKey && col.headerOptions && col.fillType === this.templateFillType) { const headerValue = this.headerSelectFields[col.headerSelectKey]; if (isValueEmpty(headerValue)) { @@ -682,11 +681,9 @@ export default { errors.push(errorItem); this.formErrors.push(errorItem); } - // 检查子字段(如果有) - if (col.bodySubKey && !col.bodySubDisabled && col.bodySubType !== 'span' && col.bodySubType !== "button") { + if (col.bodySubKey && !col.bodySubDisabled &&col.bodySubFillType === this.templateFillType&& col.bodySubType !== 'span' && col.bodySubType !== "button") { const subValue = row[col.bodySubKey]; - console.log(col, subValue, "subValue") if (isValueEmpty(subValue)) { const errorItem = { rowIndex,