ing
This commit is contained in:
		
							parent
							
								
									f7364cf99e
								
							
						
					
					
						commit
						0f69c63a98
					
				@ -32,7 +32,7 @@ import {PlatformLocation} from '@angular/common';
 | 
			
		||||
  selector: 'of-target-list',
 | 
			
		||||
  templateUrl: './list.component.html',
 | 
			
		||||
})
 | 
			
		||||
export class ListComponent implements OnInit, OnChanges {
 | 
			
		||||
export class ListComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  @Input() probeID;
 | 
			
		||||
  @Input() pageIdx;
 | 
			
		||||
@ -56,8 +56,6 @@ export class ListComponent implements OnInit, OnChanges {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    // this.getTargetList();
 | 
			
		||||
    console.log(this.paginator);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngOnChanges(changes: SimpleChanges): void {
 | 
			
		||||
 | 
			
		||||
@ -28,10 +28,6 @@ export class TargetListPageComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onPageChange(pageNo: number) {
 | 
			
		||||
    // console.log(pageNo);
 | 
			
		||||
    // if (pageNo + 1 === this.pageIdx) {
 | 
			
		||||
    //   return;
 | 
			
		||||
    // }
 | 
			
		||||
    this.pageIdx = pageNo + 1;
 | 
			
		||||
    this.router.navigate(['/probe', this.probeID, 'target'], { queryParams: { page: this.pageIdx } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user