프로필 휴가정보 색상 업데이트
This commit is contained in:
parent
3e5ce3b02d
commit
b01849e1bf
|
@ -25,10 +25,10 @@
|
||||||
<span class="mdi mdi-upload mdi-18px"></span>
|
<span class="mdi mdi-upload mdi-18px"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!--morning-off:오전 afternoon-off:오후 day-off:휴가 long-time:장기 leave-of-absence:휴직-->
|
|
||||||
<span
|
<span
|
||||||
*ngIf="getWorkstatus(userInfo).length > 0"
|
*ngIf="getWorkstatus(userInfo).length > 0"
|
||||||
class="work-status afternoon-off"
|
class="work-status"
|
||||||
|
[ngClass]="getWorkstatusStyle(userInfo)"
|
||||||
>
|
>
|
||||||
{{ getWorkstatus(userInfo) }}
|
{{ getWorkstatus(userInfo) }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -159,6 +159,31 @@ export class ProfileComponent implements OnInit {
|
||||||
|
|
||||||
return workstatus;
|
return workstatus;
|
||||||
}
|
}
|
||||||
|
getWorkstatusStyle(userInfo: UserInfoSS): string {
|
||||||
|
// morning-off: 오전 afternoon-off: 오후 day-off: 휴가 long-time: 장기 leave-of-absence: 휴직
|
||||||
|
let style = '';
|
||||||
|
if (!!userInfo && !!userInfo.workstatus) {
|
||||||
|
switch (userInfo.workstatus) {
|
||||||
|
case WorkStatusType.VacationAM:
|
||||||
|
style = 'morning-off';
|
||||||
|
break;
|
||||||
|
case WorkStatusType.VacationPM:
|
||||||
|
style = 'afternoon-off';
|
||||||
|
break;
|
||||||
|
case WorkStatusType.VacationAll:
|
||||||
|
style = 'day-off';
|
||||||
|
break;
|
||||||
|
case WorkStatusType.LeaveOfAbsence:
|
||||||
|
style = 'leave-of-absence';
|
||||||
|
break;
|
||||||
|
case WorkStatusType.LongtermRefresh:
|
||||||
|
style = 'long-time';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
|
||||||
getDisabledBtn(type: string): boolean {
|
getDisabledBtn(type: string): boolean {
|
||||||
if (!this.myMadn || this.myMadn.trim().length === 0) {
|
if (!this.myMadn || this.myMadn.trim().length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user