调试
This commit is contained in:
@@ -112,6 +112,12 @@ export class MainComponent implements OnInit {
|
||||
@ViewChild('searchFilter') searchFilter;
|
||||
@ViewChild('tableContainer') tableContainer;
|
||||
|
||||
trItemHeight: number = 42;
|
||||
start: number = 0;
|
||||
end: number = 0;
|
||||
visibleCount: number = 0;
|
||||
scrollTop: number = 0;
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
this.renderer2.setStyle(this.tableContainer.nativeElement, 'height', this.mainPage.nativeElement.offsetHeight - this.searchFilter.nativeElement.offsetHeight - 55 + 'px');
|
||||
@@ -362,6 +368,13 @@ export class MainComponent implements OnInit {
|
||||
combined_data.sort(function (a, b) {
|
||||
return (a['ORDER'] - b['ORDER']);
|
||||
})
|
||||
|
||||
// this.visibleCount = Math.ceil(this.tableContainer.nativeElement.clientHeight / this.trItemHeight);
|
||||
// this.start = 0;
|
||||
// this.end = this.start + this.visibleCount;
|
||||
// this.render_data = this.combined_data.slice(this.start,this.end);
|
||||
|
||||
|
||||
this.render_data = combined_data;
|
||||
this.row_state = this.render_data.length > 0 ? this.render_data[0] : { renderFlight: {} };
|
||||
this.selectChange();
|
||||
|
||||
Reference in New Issue
Block a user