瀏覽代碼

Merge branch 'master' of http://119.23.210.103:3000/wy/zdqy_firm_former

liujiayin 2 年之前
父節點
當前提交
5525a641b9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

+ 2 - 2
src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

@@ -221,7 +221,7 @@ export default {
             dialogTemplate: null,
             dialogTemplate: null,
             dialogTemplateAtts: {},
             dialogTemplateAtts: {},
 
 
-            oldList: []
+            oldList: []  // 子表旧数据
         }
         }
     },
     },
     computed: {
     computed: {
@@ -400,7 +400,7 @@ export default {
         pageOperation (val, oldVal) {
         pageOperation (val, oldVal) {
             let page = this.currentPage * 10 - 10
             let page = this.currentPage * 10 - 10
             const size = val.length
             const size = val.length
-            if (val.length > this.oldList.length) {
+            if (this.editFromType === 'add' && val.length > this.oldList.length && this.oldList.length > 0) {
                 const valBai = size % 10
                 const valBai = size % 10
                 const valChu = parseInt(size / 10)
                 const valChu = parseInt(size / 10)
                 if (valBai === 0) {
                 if (valBai === 0) {