|
|
@ -760,7 +760,9 @@ export class KeyUnitManagementComponent implements OnInit { |
|
|
|
}); |
|
|
|
}); |
|
|
|
dialogRef.afterClosed().subscribe((result) => { |
|
|
|
dialogRef.afterClosed().subscribe((result) => { |
|
|
|
//console.log(result);
|
|
|
|
//console.log(result);
|
|
|
|
element.name = result; |
|
|
|
if (element) { |
|
|
|
|
|
|
|
element.name = result; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1033,12 +1035,13 @@ export class upname { |
|
|
|
.subscribe( |
|
|
|
.subscribe( |
|
|
|
(data: any) => { |
|
|
|
(data: any) => { |
|
|
|
this.snackBar.open("修改名字成功", "确定", config); |
|
|
|
this.snackBar.open("修改名字成功", "确定", config); |
|
|
|
|
|
|
|
this.dialogRef.close(this.unitname); |
|
|
|
}, |
|
|
|
}, |
|
|
|
(err) => { |
|
|
|
(err) => { |
|
|
|
this.snackBar.open(err, "确定", config); |
|
|
|
this.snackBar.open(err, "确定", config); |
|
|
|
|
|
|
|
this.dialogRef.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
this.dialogRef.close(this.unitname); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|