|
|
@@ -601,9 +601,14 @@ export default {
|
|
|
this.reset();
|
|
|
getDept(row.id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
+
|
|
|
this.pId = response.data.parentId;
|
|
|
});
|
|
|
if (this.pId != -1) {
|
|
|
+ this.pId = row.parentId;
|
|
|
+ this.form.parentId=row.parentId;
|
|
|
+ console.log(this.form,"this.form")
|
|
|
+ console.log(this.form.parentId,"this.pId")
|
|
|
await deptTreeSelect({removeId:row.parentId,id:row.id}).then((response) => {
|
|
|
this.deptOptions2 = response.data;
|
|
|
// this.defaultKeys.push(response.data[0].id);
|