chenjun 2 年之前
父節點
當前提交
6f65fb143a
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      src/components/Table/index.vue

+ 10 - 6
src/components/Table/index.vue

@@ -405,15 +405,19 @@ export default {
     },
     //表格-新增
     handleAdd () {
-      if(this.isDialog == true){
-        this.flag = true;
+      this.flag = true;
         this.tableType = "add";
         this.tableTitle = "新增";
         this.tableForm = {};
-      }
-      else{
-        this.$emit("handleAdd");
-      }
+      // if(this.isDialog ){
+      //   this.flag = true;
+      //   this.tableType = "add";
+      //   this.tableTitle = "新增";
+      //   this.tableForm = {};
+      // }
+      // else{
+      //   this.$emit("handleAdd");
+      // }
 
       console.log(this.tableOptions);
     },