luojun hace 2 años
padre
commit
a3a6eb9fe8
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      src/views/system/dept/index.vue

+ 6 - 6
src/views/system/dept/index.vue

@@ -571,21 +571,21 @@ export default {
       this.handleQuery();
     },
     /** 新增按钮操作 */
-    async  handleAdd() {
-      console.log(this.queryParams.parentId, "this.queryParams.parentId");
-      console.log(this.form.parentId, "this.form.parentId");
+    async handleAdd() {
+      // console.log(this.queryParams.parentId, "this.queryParams.parentId");
+      // console.log(this.form.parentId, "this.form.parentId");
       this.reset();
       if (this.queryParams.parentId != undefined) {
         if (this.pId != -1) {
-          await  deptTreeSelect().then((response) => {
+          await deptTreeSelect().then((response) => {
             this.deptOptions2 = response.data;
             this.defaultKeys.push(response.data[0].id);
           });
         }
         this.form.parentId = this.queryParams.parentId;
+        this.open = true;
+        this.title = "新增";
       }
-      this.open = true;
-      this.title = "新增";
     },
     /** 展开/折叠操作 */
     toggleExpandAll() {