|
|
@ -575,7 +575,6 @@ export default { |
|
|
|
|
|
|
|
|
// 校验表头的 HandleFormItem |
|
|
// 校验表头的 HandleFormItem |
|
|
this.columns.forEach((col, colIndex) => { |
|
|
this.columns.forEach((col, colIndex) => { |
|
|
console.log(col.headerColumns, col, "ttt") |
|
|
|
|
|
if (col.headerSelectKey && col.headerOptions && col.fillType === this.templateFillType) { |
|
|
if (col.headerSelectKey && col.headerOptions && col.fillType === this.templateFillType) { |
|
|
const headerValue = this.headerSelectFields[col.headerSelectKey]; |
|
|
const headerValue = this.headerSelectFields[col.headerSelectKey]; |
|
|
if (isValueEmpty(headerValue)) { |
|
|
if (isValueEmpty(headerValue)) { |
|
|
@ -682,11 +681,9 @@ export default { |
|
|
errors.push(errorItem); |
|
|
errors.push(errorItem); |
|
|
this.formErrors.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]; |
|
|
const subValue = row[col.bodySubKey]; |
|
|
console.log(col, subValue, "subValue") |
|
|
|
|
|
if (isValueEmpty(subValue)) { |
|
|
if (isValueEmpty(subValue)) { |
|
|
const errorItem = { |
|
|
const errorItem = { |
|
|
rowIndex, |
|
|
rowIndex, |
|
|
|