This commit is contained in:
geek 2018-06-11 23:03:16 +09:00
parent 3db6aa80e6
commit f7364cf99e
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@
</tr> </tr>
</ng-template> </ng-template>
</p-table> </p-table>
<p-paginator #paginator [rows]="targetPage.size" [totalRecords]="targetPage.totalElements" [first]="pageIdx " <p-paginator #paginator [rows]="targetPage.size" [totalRecords]="targetPage.totalElements" [first]="(pageIdx-1) * targetPage.size"
(onPageChange)="onPaginate($event)"></p-paginator> (onPageChange)="onPaginate($event)"></p-paginator>
</ng-template> </ng-template>

View File

@ -57,6 +57,7 @@ export class ListComponent implements OnInit, OnChanges {
ngOnInit() { ngOnInit() {
// this.getTargetList(); // this.getTargetList();
console.log(this.paginator);
} }
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {