# 대상 이슈사항

TC_MSG_060
1. 검색결과는 정상적이나 검색결과가 많았다가 검색결과가 적어지면 스크롤이 최상위로 가지지 않고 하단에 머물러 있음
>>>>>>>>>>>>>>>
1. 프로그램 수정완료
This commit is contained in:
leejinho 2020-01-08 13:17:34 +09:00
parent 0b04492309
commit 1af702bccd

View File

@ -116,6 +116,8 @@ export class OrganizationComponent
@ViewChild('cvsvDeptUser', { static: false })
cvsvDeptUser: CdkVirtualScrollViewport;
@ViewChild('cvsvDeptSearchUser', { static: false })
cvsvDeptSearchUser: CdkVirtualScrollViewport;
@ViewChild(PerfectScrollbarDirective, { static: false })
psDirectiveRef?: PerfectScrollbarDirective;
@ -290,15 +292,21 @@ export class OrganizationComponent
this.selectedDepartmentProcessing = false;
// 검색 결과에 따른 프레즌스 조회.
const userSeqList: number[] = [];
this.searchUserInfos.map(user => userSeqList.push(user.seq));
if (userSeqList.length > 0) {
this.store.dispatch(
StatusStore.bulkInfo({
divCd: 'orgSrch',
userSeqs: userSeqList
userSeqs: this.searchUserInfos.map(user => user.seq)
})
);
}
if (!!this.cvsvDeptSearchUser) {
this.cvsvDeptSearchUser.scrollToOffset(0);
}
if (!!this.psDirectiveRef) {
this.psDirectiveRef.update();
}
}
break;
}