seimin 2 月之前
父節點
當前提交
5186cfe4ad
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 2732
       this.patientList = [patient];
2733 2733
       return;
2734 2734
     }
2735
+    if(!id){
2736
+      this.patientList = [];
2737
+      return;
2738
+    }
2735 2739
     let dataObj = { searchWords, deptId: id };
2736 2740
     this.isLoadingPatient = true;
2737 2741
     this.mainService.getPatientList(dataObj).subscribe((result) => {