chenjun 1 년 전
부모
커밋
d8840ff332
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/views/tablePage/index.vue

+ 6 - 0
src/views/tablePage/index.vue

@@ -236,6 +236,11 @@ export default {
       this.tableType = "add";
       this.tableTitle = "新增";
       this.tableForm = {};
+      for(let k in this.defaultfilter){
+        if(k!=1){
+          this.tableForm[k] = this.defaultfilter[k]
+        }
+      }
       // this.formItem = tableColumnArrs.filter(item => item.isdisplay == 1)
     },
     //表格-编辑
@@ -247,6 +252,7 @@ export default {
       this.tableType = "edit";
       this.tableTitle = "编辑";
       this.tableForm = _.cloneDeep(row);
+
     },
     //表格-其他类型按钮操作
     handleOther (row, auth) {