Explorar el Código

修复机构树

luojun hace 2 años
padre
commit
381a0d4888
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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");