# 이슈처리 243
This commit is contained in:
parent
59774abb1f
commit
e87b27a4fa
@ -16,7 +16,9 @@
|
|||||||
class="left-side-tabs-contents"
|
class="left-side-tabs-contents"
|
||||||
[style.display]="MainMenu.Chat === currentTabLable ? 'block' : 'none'"
|
[style.display]="MainMenu.Chat === currentTabLable ? 'block' : 'none'"
|
||||||
>
|
>
|
||||||
<app-layout-chat-left-sidenav-chat></app-layout-chat-left-sidenav-chat>
|
<app-layout-chat-left-sidenav-chat
|
||||||
|
[isVisible]="currentTabLable === MainMenu.Chat"
|
||||||
|
></app-layout-chat-left-sidenav-chat>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
#tabs
|
#tabs
|
||||||
|
@ -37,6 +37,7 @@ import { FormGroup, FormBuilder } from '@angular/forms';
|
|||||||
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
||||||
import { PerfectScrollbarDirective } from 'ngx-perfect-scrollbar';
|
import { PerfectScrollbarDirective } from 'ngx-perfect-scrollbar';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
import { VirtualScrollerComponent } from 'ngx-virtual-scroller';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-layout-chat-left-sidenav-chat',
|
selector: 'app-layout-chat-left-sidenav-chat',
|
||||||
@ -48,8 +49,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||||||
@Input()
|
@Input()
|
||||||
isVisible = true;
|
isVisible = true;
|
||||||
|
|
||||||
@ViewChild('cvsvChatList', { static: false })
|
@ViewChild('vsChatRoomList', { static: false })
|
||||||
cvsvChatList: CdkVirtualScrollViewport;
|
private vsChatRoomList: VirtualScrollerComponent;
|
||||||
|
|
||||||
@ViewChild(PerfectScrollbarDirective, { static: false })
|
@ViewChild(PerfectScrollbarDirective, { static: false })
|
||||||
psDirectiveRef?: PerfectScrollbarDirective;
|
psDirectiveRef?: PerfectScrollbarDirective;
|
||||||
@ -192,14 +193,18 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||||||
|
|
||||||
ngAfterViewChecked(): void {
|
ngAfterViewChecked(): void {
|
||||||
if (
|
if (
|
||||||
!!this.cvsvChatList &&
|
!!this.vsChatRoomList &&
|
||||||
!!this.roomList &&
|
!!this.roomList &&
|
||||||
this.roomList.length > 0 &&
|
this.roomList.length > 0 &&
|
||||||
!this.isInitList &&
|
!this.isInitList &&
|
||||||
this.isVisible
|
this.isVisible
|
||||||
) {
|
) {
|
||||||
this.isInitList = true;
|
this.isInitList = true;
|
||||||
this.cvsvChatList.checkViewportSize();
|
this.vsChatRoomList.refresh();
|
||||||
|
|
||||||
|
if (!!this.psDirectiveRef) {
|
||||||
|
this.psDirectiveRef.update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,6 +298,7 @@ export class OrganizationComponent
|
|||||||
this.isVisible
|
this.isVisible
|
||||||
) {
|
) {
|
||||||
this.isInitList = true;
|
this.isInitList = true;
|
||||||
|
this.vsDeptUser.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user