|
|
|
@ -121,5 +121,14 @@ export class PushComponent implements OnInit {
|
|
|
|
|
this.validateForm.controls[i].markAsDirty(); |
|
|
|
|
this.validateForm.controls[i].updateValueAndValidity(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(this.validateForm.value.search){ |
|
|
|
|
this.list = this.list.filter((item)=>{ |
|
|
|
|
return item.violationType.indexOf(this.validateForm.value.search) != -1 |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.getViolation() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|