From 3db6aa80e635b0da476b8a2b9eb09213337b483a Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 11 Jun 2018 22:31:42 +0900 Subject: [PATCH] ing --- @overflow/target/component/list/list.component.html | 4 ++-- @overflow/target/component/list/list.component.ts | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/@overflow/target/component/list/list.component.html b/@overflow/target/component/list/list.component.html index b2f0256..a68af23 100644 --- a/@overflow/target/component/list/list.component.html +++ b/@overflow/target/component/list/list.component.html @@ -18,7 +18,7 @@ - {{rowIndex + 1}} + {{(rowIndex + 1) + ((pageIdx - 1) * countPerPage)}} {{target.infra.metaInfraType.name}} {{target.displayName}} @@ -30,7 +30,7 @@ - diff --git a/@overflow/target/component/list/list.component.ts b/@overflow/target/component/list/list.component.ts index 939d7b5..7ab9580 100644 --- a/@overflow/target/component/list/list.component.ts +++ b/@overflow/target/component/list/list.component.ts @@ -45,16 +45,18 @@ export class ListComponent implements OnInit, OnChanges { pending$: Observable; error$: Observable; + countPerPage: number; + constructor( private store: Store, private targetService: TargetService, private location: PlatformLocation ) { - + this.countPerPage = 2; } ngOnInit() { - this.getTargetList(); + // this.getTargetList(); } ngOnChanges(changes: SimpleChanges): void { @@ -76,7 +78,7 @@ export class ListComponent implements OnInit, OnChanges { const pageParams: PageParams = { pageNo: p, - countPerPage: 2, + countPerPage: this.countPerPage, sortCol: 'id', sortDirection: 'descending', };