Commit d6471955 authored by abbasmortezavifar's avatar abbasmortezavifar
Browse files

add input

parent bf3986ec
......@@ -17,7 +17,20 @@ export class PanelOkComponent implements OnInit {
selectedType: any = 1;
selectedLocation: any = 1;
constructor(private http: ServerService) {}
vlaueChange(value: string) {
this.sicks = [];
if (value != '') {
this.http.srhItem(value).subscribe((data) => {
for (let i = 0; i < data.length; i++) {
if (data[i].state == 2) {
this.sicks.push(data[i]);
}
}
});
}else{
this.ngOnInit();
}
}
isCheckAm(check: any) {
if (check.target.checked) {
this.Am = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment