seimin il y a 3 ans
Parent
commit
a0c4622add
1 fichiers modifiés avec 5 ajouts et 10 suppressions
  1. 5 10
      src/app/views/quick-combination/quick-combination.component.ts

+ 5 - 10
src/app/views/quick-combination/quick-combination.component.ts

@@ -646,10 +646,7 @@ export class QuickCombinationComponent implements OnInit {
646 646
     if (!flag) {
647 647
       return;
648 648
     }
649
-    let hosIds = "";
650
-    if (this.userInfo.infoPermission.hospitals.length > 0) {
651
-      hosIds = this.userInfo.infoPermission.hospitals[0].id; //没考虑多院区,取第一个院区
652
-    }
649
+    let hosIds = this.currentHospital.id;
653 650
     let postData = {
654 651
       idx: 0,
655 652
       sum: 20,
@@ -721,14 +718,12 @@ export class QuickCombinationComponent implements OnInit {
721 718
       sum: this.pageSize,
722 719
     };
723 720
     if (this.searchCriteria.name) {
724
-      data["workAllocationQuickConfig"][
725
-        "configName"
726
-      ] = this.searchCriteria.name;
721
+      data["workAllocationQuickConfig"]["configName"] =
722
+        this.searchCriteria.name;
727 723
     }
728 724
     if (this.searchCriteria.workModel) {
729
-      data["workAllocationQuickConfig"][
730
-        "ruleType"
731
-      ] = this.searchCriteria.workModel;
725
+      data["workAllocationQuickConfig"]["ruleType"] =
726
+        this.searchCriteria.workModel;
732 727
     }
733 728
     this.loading1 = true;
734 729
     this.mainService