1:1 대화방명 디폴트 초기 생성시

"이름 직급 팀명 내선 전화번호 핸드폰 전화번호" 로 생성
This commit is contained in:
leejinho 2020-03-30 10:45:09 +09:00
parent dbb19f9234
commit 8bc952d3be
2 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,9 @@
<span> <span>
{{ getSingleRoomUserInfosGrade(_roomUserInfos) }} {{ getSingleRoomUserInfosGrade(_roomUserInfos) }}
</span> </span>
<span>
/ {{ getSingleRoomUserInfosDeptName(_roomUserInfos) }}
</span>
<span <span
*ngIf=" *ngIf="
_roomUserInfos.length > 0 && _roomUserInfos.length > 0 &&

View File

@ -602,6 +602,15 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
return roomName; return roomName;
} }
getSingleRoomUserInfosDeptName(roomUserInfos: any[]) {
if (roomUserInfos.length > 0) {
return new UiTranslatePipe(
this.uiTranslateService,
this.changeDetectorRef
).transform(roomUserInfos, 'deptName', ',');
}
return '';
}
getSingleRoomUserInfosGrade(roomUserInfos: any[]) { getSingleRoomUserInfosGrade(roomUserInfos: any[]) {
if (roomUserInfos.length > 0) { if (roomUserInfos.length > 0) {
return new UiTranslatePipe( return new UiTranslatePipe(