조직도 메뉴 선택시 현재 선택된 부서로 트리 스크롤링 하도록 수정.
This commit is contained in:
parent
7bb6345e9c
commit
78e661732c
|
@ -226,6 +226,16 @@ export class TreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!!this.cvsvOrganization) {
|
if (!!this.cvsvOrganization) {
|
||||||
this.cvsvOrganization.checkViewportSize();
|
this.cvsvOrganization.checkViewportSize();
|
||||||
|
|
||||||
|
// scroll index
|
||||||
|
if (!!this.cvsvOrganization) {
|
||||||
|
const curIndex = this.dataSource.expandedDataSubject.value.findIndex(
|
||||||
|
node => node.deptInfo.seq === this.currentDeptSeq
|
||||||
|
);
|
||||||
|
if (curIndex > -1) {
|
||||||
|
this.cvsvOrganization.scrollToIndex(curIndex);
|
||||||
|
}
|
||||||
|
}
|
||||||
this.psDirectiveRef.update();
|
this.psDirectiveRef.update();
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user