|
@@ -87,7 +87,12 @@ export class ClinicalUsersManagementComponent implements OnInit {
|
87
|
87
|
this.getList();
|
88
|
88
|
}
|
89
|
89
|
// 重置
|
|
90
|
+ isShowSelectHospital = true;
|
90
|
91
|
reset() {
|
|
92
|
+ this.isShowSelectHospital = false;
|
|
93
|
+ setTimeout(()=>{
|
|
94
|
+ this.isShowSelectHospital = true;
|
|
95
|
+ },0)
|
91
|
96
|
this.pageIndex = 1;
|
92
|
97
|
this.hosId = this.tool.getCurrentHospital().id;
|
93
|
98
|
this.name = "";
|
|
@@ -148,11 +153,12 @@ export class ClinicalUsersManagementComponent implements OnInit {
|
148
|
153
|
getAllHospital() {
|
149
|
154
|
this.loading1 = true;
|
150
|
155
|
let topLevelParentHosList$ = this.mainService.apiPostAll("topLevelParentHosList", {});
|
151
|
|
- let topLevelParentHos$ = this.mainService.apiPostAll("topLevelParentHos", {hosId: this.tool.getCurrentHospital().id});
|
152
|
|
- forkJoin(topLevelParentHosList$, topLevelParentHos$).subscribe((dataArray:any[]) => {
|
153
|
|
- let [data1, data2] = dataArray;
|
|
156
|
+ // let topLevelParentHos$ = this.mainService.apiPostAll("topLevelParentHos", {hosId: this.tool.getCurrentHospital().id});
|
|
157
|
+ forkJoin(topLevelParentHosList$).subscribe((dataArray:any[]) => {
|
|
158
|
+ let [data1] = dataArray;
|
154
|
159
|
this.hospitals1 = data1.topLevelParentHosList || [];
|
155
|
|
- this.hosId = data2.topHospital ? data2.topHospital.id : null;
|
|
160
|
+ // this.hosId = data2.topHospital ? data2.topHospital.id : null;
|
|
161
|
+ this.hosId = this.tool.getCurrentHospital().id;
|
156
|
162
|
this.changeHosp1(this.hosId);
|
157
|
163
|
this.getList();
|
158
|
164
|
}, err => {
|
|
@@ -321,7 +327,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
|
321
|
327
|
group: groups,
|
322
|
328
|
role: roles,
|
323
|
329
|
phone: that.validateForm.value.deptPhone,
|
324
|
|
- hospital: { id: that.hosId },
|
|
330
|
+ hospital: { id: that.tool.getCurrentHospital().id },
|
325
|
331
|
weixin: that.validateForm.value.weixin,
|
326
|
332
|
},
|
327
|
333
|
};
|