|
|
@@ -232,9 +232,13 @@
|
|
|
type: "warning",
|
|
|
confirmButtonText: "删除"
|
|
|
}).then(() => {
|
|
|
- this.$API.system.dept.del({ ids: [deptId] }).then(() => {
|
|
|
+ this.$API.system.dept.del({ deptId }).then(() => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getAsideNode();
|
|
|
+ if (this.table.params.deptId == deptId) {
|
|
|
+ this.table.params.deptId = null;
|
|
|
+ this.table.deptName = null;
|
|
|
+ }
|
|
|
}).catch(() => {});
|
|
|
}).catch(() => {});
|
|
|
},
|