This commit is contained in:
richard-loafle 2020-02-06 10:26:44 +09:00
commit 5d3938addd
8 changed files with 62 additions and 57 deletions

View File

@ -137,7 +137,7 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
for (const ru of roomUserShort) { for (const ru of roomUserShort) {
for (const u of ru.userInfos) { for (const u of ru.userInfos) {
if (u.seq !== this.loginRes.userSeq) { if (u.seq !== this.loginRes.userSeq) {
if (!!u.name && '' !== u.name.trim()) { if (!!u.name && '' !== u.name.trim() && u.isJoinRoom) {
recommendedWordList.push(u.name); recommendedWordList.push(u.name);
} }
} }
@ -285,7 +285,9 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
value => roomInfo.roomSeq === value.roomSeq value => roomInfo.roomSeq === value.roomSeq
); );
if (-1 < i) { if (-1 < i) {
return this.roomUserShortList[i].userInfos; return this.roomUserShortList[i].userInfos.filter(
user => user.isJoinRoom
);
} }
} }
} }

View File

@ -608,6 +608,10 @@ export class OrganizationComponent
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
if (userInfo.seq === this.loginRes.userSeq) {
return;
}
this.orgUserContextMenuPosition.x = event.clientX + 'px'; this.orgUserContextMenuPosition.x = event.clientX + 'px';
this.orgUserContextMenuPosition.y = event.clientY + 'px'; this.orgUserContextMenuPosition.y = event.clientY + 'px';
this.orgUserContextMenuTrigger.menu.focusFirstItem('mouse'); this.orgUserContextMenuTrigger.menu.focusFirstItem('mouse');

View File

@ -1,4 +1,4 @@
<mat-card class="confirm-card mat-elevation-z"> <mat-card class="confirm-card mat-elevation-z dialog-creat-chat">
<mat-card-header cdkDrag cdkDragRootElement=".cdk-overlay-pane" cdkDragHandle> <mat-card-header cdkDrag cdkDragRootElement=".cdk-overlay-pane" cdkDragHandle>
<mat-card-title>{{ data.title }}</mat-card-title> <mat-card-title>{{ data.title }}</mat-card-title>
<button class="icon-button btn-dialog-close" (click)="onClickChoice(false)"> <button class="icon-button btn-dialog-close" (click)="onClickChoice(false)">
@ -59,7 +59,9 @@
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path> <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path> <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>--> </svg>-->
<button class="icon-button"><i class="mid mid-24 mdi-account-multiple"></i></button> <button class="icon-button">
<i class="mid mid-24 mdi-account-multiple"></i>
</button>
</ng-template> </ng-template>
<div class="mat-tab-frame"> <div class="mat-tab-frame">
<div> <div>
@ -88,6 +90,7 @@
<ucap-profile-user-list-item <ucap-profile-user-list-item
*ucapGroupExpansionPanelItem="let userInfo" *ucapGroupExpansionPanelItem="let userInfo"
[userInfo]="userInfo" [userInfo]="userInfo"
[showPresence]="false"
[sessionVerinfo]="sessionVerinfo" [sessionVerinfo]="sessionVerinfo"
[selectedUserList]="selectedUserList" [selectedUserList]="selectedUserList"
[isChecked]="getCheckedUser(userInfo)" [isChecked]="getCheckedUser(userInfo)"
@ -123,6 +126,7 @@
<ucap-profile-user-list-item <ucap-profile-user-list-item
*ngFor="let userInfo of searchUserInfos" *ngFor="let userInfo of searchUserInfos"
[userInfo]="userInfo" [userInfo]="userInfo"
[showPresence]="false"
[sessionVerinfo]="sessionVerinfo" [sessionVerinfo]="sessionVerinfo"
[selectedUserList]="selectedUserList" [selectedUserList]="selectedUserList"
[isChecked]="getCheckedUser(userInfo)" [isChecked]="getCheckedUser(userInfo)"
@ -141,7 +145,9 @@
matTooltip="{{ 'organization.chart' | translate }}" matTooltip="{{ 'organization.chart' | translate }}"
matTooltipPosition="after" matTooltipPosition="after"
>device_hub</mat-icon>--> >device_hub</mat-icon>-->
<button class="icon-button"><i class="mid mid-24 mdi-file-tree"></i></button> <button class="icon-button">
<i class="mid mid-24 mdi-file-tree"></i>
</button>
</ng-template> </ng-template>
<div> <div>
<app-layout-chat-left-sidenav-organization <app-layout-chat-left-sidenav-organization
@ -165,8 +171,7 @@
matTooltipPosition="before" matTooltipPosition="before"
class="icon-button" class="icon-button"
><i class="mid mid-24 mdi-chat"></i> ><i class="mid mid-24 mdi-chat"></i>
</mat-icon </mat-icon>
>
</ng-template> </ng-template>
<div> <div>
<ucap-room-list-item <ucap-room-list-item

View File

@ -168,6 +168,10 @@
</mat-card-header> </mat-card-header>
<mat-card-content> <mat-card-content>
<button class="icon-button btn-dialog-close" (click)="onClose()">
<i class="mdi mdi-window-close"></i>
</button>
<ul class="userInfo-list"> <ul class="userInfo-list">
<li class="company"> <li class="company">
<dt class="division">{{ 'profile.fieldCompany' | translate }}</dt> <dt class="division">{{ 'profile.fieldCompany' | translate }}</dt>
@ -384,8 +388,4 @@
</div> </div>
</mat-card-actions> </mat-card-actions>
</mat-card-content> </mat-card-content>
<button class="icon-button btn-dialog-close" (click)="onClose()">
<i class="mdi mdi-window-close"></i>
</button>
</mat-card> </mat-card>

View File

@ -1,3 +1,16 @@
$desktop-l-width: 1440px;
$tablet-l-width: 1024px;
$tablet-s-width: 768px;
$mob-l-width: 640px;
$login-max-height: 800px;
// 태블릿
@mixin tab {
@media screen and (max-width: #{$tablet-l-width}) {
@content;
}
}
@mixin ellipsis($row) { @mixin ellipsis($row) {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -22,7 +35,7 @@
display: flex; display: flex;
flex-flow: row; flex-flow: row;
flex: 0 0 auto; flex: 0 0 auto;
width: 700px; width: 100%;
height: 450px; height: 450px;
position: relative; position: relative;
padding: 0; padding: 0;
@ -30,7 +43,7 @@
position: relative; position: relative;
justify-content: flex-start; justify-content: flex-start;
flex-flow: column; flex-flow: column;
width: 260px; width: 38%;
height: 100%; height: 100%;
background: #64cddf; background: #64cddf;
color: #ffffff; color: #ffffff;
@ -150,9 +163,9 @@
} }
.mat-card-content { .mat-card-content {
position: relative; position: relative;
width: 440px; width: 62%;
height: 100%; height: 100%;
padding: 10px 0; padding-bottom: 10px;
margin-left: 30px; margin-left: 30px;
ul { ul {
display: flex; display: flex;
@ -260,10 +273,13 @@
justify-content: center; justify-content: center;
align-self: center; align-self: center;
margin-left: 8px; margin-left: 8px;
display: inline-flex;
@media screen and (max-width: #{$tablet-s-width}) {
display: none;
}
} }
} }
.btn-dialog-close { .btn-dialog-close {
margin-left: auto;
} }

View File

@ -3,6 +3,7 @@
<!--pcOn , pcOut pcOff , pcOther--> <!--pcOn , pcOut pcOff , pcOther-->
<span <span
class="presence" class="presence"
*ngIf="showPresence"
[ngClass]="getPresence(PresenceType.PC)" [ngClass]="getPresence(PresenceType.PC)"
[matTooltip]="getPresenceMsg()" [matTooltip]="getPresenceMsg()"
matTooltipPosition="after" matTooltipPosition="after"

View File

@ -35,6 +35,8 @@ export class UserListItemComponent implements OnInit {
@Input() @Input()
presence: StatusBulkInfo | StatusInfo; presence: StatusBulkInfo | StatusInfo;
@Input() @Input()
showPresence = true;
@Input()
checkable = false; checkable = false;
@Input() @Input()
checkDisabled = false; checkDisabled = false;
@ -77,21 +79,19 @@ export class UserListItemComponent implements OnInit {
break; break;
} }
if (!!status) { switch (status) {
switch (status) { case StatusCode.OnLine:
case StatusCode.OnLine: rtnClass = type + 'On';
rtnClass = type + 'On'; break;
break; case StatusCode.Away:
case StatusCode.Away: rtnClass = type + 'Out';
rtnClass = type + 'Out'; break;
break; case StatusCode.Busy:
case StatusCode.Busy: rtnClass = type + 'Other';
rtnClass = type + 'Other'; break;
break; default:
default: rtnClass = type + 'Off';
rtnClass = type + 'Off'; break;
break;
}
} }
return rtnClass; return rtnClass;

View File

@ -1,24 +1 @@
/*.dialog-org { $tablet-s-width: 768px;
.oraganization-tab {
width: 100%;
height:380px;
border-bottom: 1px solid #dddddd;
.oraganization-tab-tree {
display: inline-flex;
width: 50%;
height:100%;
border-right: 1px solid #dddddd;
overflow: auto;
}
.select-list {
display: inline-flex;
flex-direction: column;
width: 50%;
height:100%;
overflow: auto;
.search-list {
overflow: auto;
}
}
}
}*/