Browse Source

子表更新bug修复

wu 5 months ago
parent
commit
527a03e4d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/Generator/components/InputTable/index.vue

+ 2 - 2
src/components/Generator/components/InputTable/index.vue

@@ -496,8 +496,8 @@ export default {
       const checkCol = (col) => col.required && !this.checkData(col) && (res = col.valid = false)
       this.tableFormData.forEach((row) => row.forEach(checkCol))
       // 将新增数据过滤出来返回给主表
-      let filterData = this.filterAddData(this.tableFormData)
-      return res ? filterData.map((row) => row.reduce((p, c) => ((p[c.__vModel__] = c.value), p), {})) : false
+      // let filterData = this.filterAddData(this.tableFormData)
+      return res ? this.tableFormData.map((row) => row.reduce((p, c) => ((p[c.__vModel__] = c.value), p), {})) : false
     },
     /**
      * 校验表格数据必填项