Browse Source

[完善]修改单位名称bug

tianjin
邵佳豪 2 years ago
parent
commit
6adb92365b
  1. 7
      src/app/key-unit/key-unit-management/key-unit-management.component.ts

7
src/app/key-unit/key-unit-management/key-unit-management.component.ts

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

Loading…
Cancel
Save