소스 검색

关联表格组问题处理

lph 1 년 전
부모
커밋
9e59fea7fe
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      zkqy-ui/src/views/relateTable/index.vue

+ 2 - 0
zkqy-ui/src/views/relateTable/index.vue

@@ -787,6 +787,7 @@ export default {
         this.conditionDefault[this.isSearchIndex] =
           this.conditionDefaultValueMap;
       } else {
+        console.log(this.tableDataList, this.editIndex);
         if (this.tableDataList.length !== 0) {
           this.relyFileds.tableName =
             this.tableDataList[this.editIndex - 1]?.dtTableName;
@@ -1616,6 +1617,7 @@ export default {
     },
     // 新增一个联动表格
     addOneTable() {
+      this.editIndex = this.tableDataList.length;
       this.relateTitle = true;
       if (this.relateTitle) {
         this.tableItemForm = {};