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

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 mat-cell
*matCellDef="let element" *matCellDef="let element"
class="profileInfo" class="profileInfo"
(click)="onClickGotoDeptTree($event, element.deptSeq)" (click)="onClickGotoDeptTree($event, element)"
> >
<div class="baseInfo"> <div class="baseInfo">
<span <span
@ -161,7 +161,7 @@
> >
</mat-checkbox> </mat-checkbox>
</th> </th>
<td mat-cell *matCellDef="let element" minWidth="70" > <td mat-cell *matCellDef="let element" minWidth="70">
<mat-checkbox <mat-checkbox
#checkbox #checkbox
*ngIf="loginRes.userSeq !== element.seq" *ngIf="loginRes.userSeq !== element.seq"

View File

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