|
@@ -78,6 +78,7 @@ export class ConfigurationCategoryComponent implements OnInit {
|
78
|
78
|
}
|
79
|
79
|
this.getCategoryList(1);
|
80
|
80
|
this.getHospitals(1);
|
|
81
|
+ this.getHospitals(2);
|
81
|
82
|
this.getPrioritys();
|
82
|
83
|
this.getScores();
|
83
|
84
|
}
|
|
@@ -293,10 +294,10 @@ export class ConfigurationCategoryComponent implements OnInit {
|
293
|
294
|
this.validateConfigForm.controls.userId.setValue(null);
|
294
|
295
|
this.validateConfigForm.controls.groupId.setValue(null);
|
295
|
296
|
|
296
|
|
- this.dutyList = [];
|
|
297
|
+ // this.dutyList = [];
|
297
|
298
|
this.userList = [];
|
298
|
299
|
this.groupList = [];
|
299
|
|
- this.getHospitals(2, id);
|
|
300
|
+ // this.getHospitals(2, id);
|
300
|
301
|
}
|
301
|
302
|
|
302
|
303
|
// 获取院区
|
|
@@ -308,14 +309,14 @@ export class ConfigurationCategoryComponent implements OnInit {
|
308
|
309
|
this.hospitalList = this.tool.getHospitalList().filter(v => !v.parent);
|
309
|
310
|
return;
|
310
|
311
|
}
|
311
|
|
- if(type === 2 && !parentId){
|
312
|
|
- this.isLoading = false;
|
313
|
|
- this.dutyList = [];
|
314
|
|
- return;
|
315
|
|
- }
|
|
312
|
+ // if(type === 2 && !parentId){
|
|
313
|
+ // this.isLoading = false;
|
|
314
|
+ // this.dutyList = [];
|
|
315
|
+ // return;
|
|
316
|
+ // }
|
316
|
317
|
let postData = {
|
317
|
318
|
hospital: {
|
318
|
|
- parent: { id: parentId },
|
|
319
|
+ // parent: { id: parentId },
|
319
|
320
|
type: { key: 'hospital_type', value: '6' },
|
320
|
321
|
},
|
321
|
322
|
idx: 0,
|
|
@@ -616,7 +617,7 @@ export class ConfigurationCategoryComponent implements OnInit {
|
616
|
617
|
}else if(data.userGroup === 2){
|
617
|
618
|
this.requiredConfigChange('userId', false);
|
618
|
619
|
}
|
619
|
|
- data.hosId && this.getHospitals(2, data.hosId);
|
|
620
|
+ // data.hosId && this.getHospitals(2, data.hosId);
|
620
|
621
|
data.dutyId && this.getUsers('', true);
|
621
|
622
|
data.dutyId && this.getGroups('', true);
|
622
|
623
|
}
|