|
|
@@ -596,17 +596,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
+ async handleUpdate(row) {
|
|
|
this.reset();
|
|
|
getDept(row.id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
this.pId = response.data.parentId;
|
|
|
- this.open = true;
|
|
|
- this.title = "编辑";
|
|
|
});
|
|
|
if (this.pId != -1) {
|
|
|
- listDeptExcludeChild(row.id).then((response) => {
|
|
|
- this.deptOptions2 = this.handleTree(response.data, "id");
|
|
|
+ await deptTreeSelect({removeId:row.parentId,id:row.id}).then((response) => {
|
|
|
+ this.deptOptions2 = response.data;
|
|
|
+ // this.defaultKeys.push(response.data[0].id);
|
|
|
+ this.open = true;
|
|
|
+ this.title = "编辑";
|
|
|
});
|
|
|
}
|
|
|
},
|