|
|
@@ -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");
|