이름 영역을 클릭해도 프로필 띄워주도록 수정.

This commit is contained in:
leejinho 2020-03-30 16:47:44 +09:00
parent 4fc3928860
commit 7bb6345e9c
2 changed files with 7 additions and 4 deletions

View File

@ -62,7 +62,7 @@
mat-cell
*matCellDef="let element"
class="profileInfo"
(click)="onClickGotoDeptTree($event, element.deptSeq)"
(click)="onClickGotoDeptTree($event, element)"
>
<div class="baseInfo">
<span

View File

@ -242,6 +242,8 @@ export class DetailTableComponent implements OnInit, OnDestroy {
if (
!compareList ||
compareList.length === 0 ||
compareList.filter(item => item.seq !== this.loginRes.userSeq).length ===
0 ||
compareList
.filter(item => item.seq !== this.loginRes.userSeq)
.filter(
@ -296,10 +298,11 @@ export class DetailTableComponent implements OnInit, OnDestroy {
event.stopPropagation();
this.openProfile.emit(userSeq);
}
onClickGotoDeptTree(event: MouseEvent, deptSeq: number) {
onClickGotoDeptTree(event: MouseEvent, element: UserInfoSS) {
event.preventDefault();
event.stopPropagation();
this.gotoDeptTree.emit(Number(deptSeq));
this.openProfile.emit(element.seq);
this.gotoDeptTree.emit(Number(element.deptSeq));
}
onClickCall(type: string, userInfo: UserInfoSS) {
let calleeNumber = '';