Browse Source

feat:[模板管理][update]

ouqian
luojie 1 month ago
parent
commit
c38c879c9a
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/components/Template/CustomTable.vue

+ 1
- 4
src/components/Template/CustomTable.vue View File

@ -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,

Loading…
Cancel
Save