검색시 본인 검색되지만 선택이 필요할 경우에는 선택되지 않도록 수정.

This commit is contained in:
leejinho 2019-12-20 11:33:14 +09:00
parent c289df1c47
commit 1de4d72472
5 changed files with 24 additions and 17 deletions

View File

@ -275,11 +275,12 @@ export class GroupComponent implements OnInit, OnDestroy {
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
// searchUserInfos.push(
// ...userInfos.filter(
// userInfo => userInfo.seq !== this.loginRes.userSeq
// )
// );
searchUserInfos.push(...userInfos);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{

View File

@ -267,11 +267,12 @@ export class OrganizationComponent
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
// searchUserInfos.push(
// ...userInfos.filter(
// userInfo => userInfo.seq !== this.loginRes.userSeq
// )
// );
searchUserInfos.push(...userInfos);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{

View File

@ -118,7 +118,7 @@
[sessionVerinfo]="sessionVerinfo"
[selectedUserList]="selectedUserList"
[isChecked]="getCheckedUser(userInfo)"
[checkable]="true"
[checkable]="userInfo.seq !== loginRes.userSeq"
[checkDisabled]="!getCheckableUser(userInfo)"
(checkUser)="onCheckUser($event)"
(click)="onToggleUser(userInfo)"

View File

@ -324,11 +324,12 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
switch (res.SSVC_TYPE) {
case SSVC_TYPE_QUERY_DEPT_USER_DATA:
const userInfos = (res as DeptUserData).userInfos;
searchUserInfos.push(
...userInfos.filter(
userInfo => userInfo.seq !== this.loginRes.userSeq
)
);
// searchUserInfos.push(
// ...userInfos.filter(
// userInfo => userInfo.seq !== this.loginRes.userSeq
// )
// );
searchUserInfos.push(...userInfos);
break;
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{
@ -507,6 +508,10 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
this.changeDetectorRef.detectChanges();
}
onToggleUser(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) {
if (userInfo.seq === this.loginRes.userSeq) {
return;
}
if (this.data.type === UserSelectDialogType.EditChatMember) {
if (
this.data.curRoomUser.filter(user => user.seq === userInfo.seq).length >

View File

@ -1,5 +1,5 @@
<div class="chat-messages" #scrollMe>
<div class="message-row" *ngIf="eventRemain">
<div class="message-row" *ngIf="eventRemain && messages.length > 0">
<button mat-button (click)="onClickMore($event)">
이전 대화 보기
<span