Parcourir la source

院区增加父院区

seimin il y a 1 an
Parent
commit
409ab4afa1

+ 3 - 2
src/app/views/hospital-management/hospital-management.component.html

@@ -18,13 +18,15 @@
18 18
         <thead>
19 19
           <tr class="thead">
20 20
             <th nzWidth="20%">院区名称</th>
21
-            <th nzWidth="60%">院区编码</th>
21
+            <th nzWidth="30%">父院区</th>
22
+            <th nzWidth="30%">院区编码</th>
22 23
             <th nzWidth="20%">操作</th>
23 24
           </tr>
24 25
         </thead>
25 26
         <tbody>
26 27
           <tr *ngFor="let data of listOfData">
27 28
             <td>{{ data.hosName }}</td>
29
+            <td>{{ data.parent ? data.parent.hosName : '无' }}</td>
28 30
             <td>{{ data.hosNo }}</td>
29 31
             <td>
30 32
               <div class="coop">
@@ -79,7 +81,6 @@
79 81
             <nz-form-label
80 82
               [nzSm]="6"
81 83
               [nzXs]="24"
82
-              nzRequired
83 84
               nzFor="parentHospital"
84 85
               >父级院区</nz-form-label
85 86
             >

+ 2 - 2
src/app/views/hospital-management/hospital-management.component.less

@@ -101,7 +101,7 @@
101 101
             margin-bottom: 15px;
102 102
 
103 103
             .ant-form-item-label {
104
-              line-height: 0;
104
+              line-height: normal;
105 105
               text-align: left;
106 106
             }
107 107
           }
@@ -112,7 +112,7 @@
112 112
             margin-bottom: 15px;
113 113
 
114 114
             .ant-form-item-label {
115
-              line-height: 0;
115
+              line-height: normal;
116 116
               text-align: left;
117 117
             }
118 118
           }

+ 2 - 2
src/app/views/hospital-management/hospital-management.component.ts

@@ -93,7 +93,7 @@ export class HospitalManagementComponent implements OnInit {
93 93
     };
94 94
     if (this.coopId) {
95 95
       // 过滤这个院区及其子院区
96
-      postData.hospital.filterByDeptId = this.coopId;
96
+      postData.hospital.filterByHosId = this.coopId;
97 97
     }
98 98
     return this.mainService.getFetchDataList("data", "hospital", postData);
99 99
   }
@@ -118,7 +118,7 @@ export class HospitalManagementComponent implements OnInit {
118 118
   addModal() {
119 119
     this.add = true;
120 120
     this.modal = true;
121
-    this.validateForm.controls.parentHospital.setValue("");
121
+    this.validateForm.controls.parentHospital.setValue(null);
122 122
     this.validateForm.controls.hospitalName.setValue("");
123 123
     this.validateForm.controls.hospitalNum.setValue("");
124 124
   }