seimin 2 months ago
parent
commit
5186cfe4ad
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/app/views/fuwutai/fuwutai.component.ts

+ 4 - 0
src/app/views/fuwutai/fuwutai.component.ts

@@ -2732,6 +2732,10 @@ export class FuwutaiComponent implements OnInit {
2732
       this.patientList = [patient];
2732
       this.patientList = [patient];
2733
       return;
2733
       return;
2734
     }
2734
     }
2735
+    if(!id){
2736
+      this.patientList = [];
2737
+      return;
2738
+    }
2735
     let dataObj = { searchWords, deptId: id };
2739
     let dataObj = { searchWords, deptId: id };
2736
     this.isLoadingPatient = true;
2740
     this.isLoadingPatient = true;
2737
     this.mainService.getPatientList(dataObj).subscribe((result) => {
2741
     this.mainService.getPatientList(dataObj).subscribe((result) => {