chenjun 1 year ago
parent
commit
d8840ff332
1 changed files with 6 additions and 0 deletions
  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) {