12345678910111213141516171819202122232425262728 |
- import { Component, OnInit } from '@angular/core';
- import { Router } from '@angular/router';
- @Component({
- selector: 'app-inspection',
- templateUrl: './inspection.page.html',
- styleUrls: ['./inspection.page.scss'],
- })
- export class InspectionPage implements OnInit {
- public scCode: string
- public poCode: string
- constructor(private router: Router) { }
- ngOnInit() {
- }
- search() {
- if(this.poCode==='') {
- this.poCode=undefined
- }
- if(this.scCode==='') {
- this.scCode=undefined
- }
- this.router.navigateByUrl(`/inspection-list/${this.poCode}/${this.scCode}`)
- }
- }
|