Browse Source

修复机构树

luojun 2 năm trước cách đây
mục cha
commit
381a0d4888
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/views/system/user/index.vue

+ 3 - 1
src/views/system/user/index.vue

@@ -832,6 +832,7 @@ export default {
     /** 新增按钮操作 */
     handleAdd() {
       this.reset();
+      this.getDeptTree();
       getUser().then((response) => {
         this.postOptions = response.posts;
         this.roleOptions = response.roles;
@@ -842,8 +843,9 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
-      console.log(row);
+      // console.log(row);
       this.reset();
+      this.getDeptTree();
       const userId = row.id || this.ids;
       getUser(userId).then((response) => {
         console.log(response.data, "data");