조직도 > 프로필 선택시 프로필 오픈과 동시에 조직도 트리 부서 이동 로직 추가.

This commit is contained in:
leejinho 2020-03-31 14:07:35 +09:00
parent 30843f2de9
commit 88ca8d2e27
2 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@
[base]="profileImageRoot"
[path]="element.profileImageFile"
[default]="'assets/images/img_nophoto_50.png'"
(click)="onClickOpenProfile($event, element.seq)"
(click)="onClickOpenProfile($event, element)"
/>
</span>
<span

View File

@ -293,10 +293,11 @@ export class DetailTableComponent implements OnInit, OnDestroy {
this.toggleUser.emit(userInfo);
}
onClickOpenProfile(event: MouseEvent, userSeq: number) {
onClickOpenProfile(event: MouseEvent, element: UserInfoSS) {
event.preventDefault();
event.stopPropagation();
this.openProfile.emit(userSeq);
this.openProfile.emit(element.seq);
this.gotoDeptTree.emit(Number(element.deptSeq));
}
onClickGotoDeptTree(event: MouseEvent, element: UserInfoSS) {
event.preventDefault();