|
@@ -42,7 +42,7 @@ export class UsersManagementComponent implements OnInit {
|
42
|
42
|
hosId: any; //院区(搜索)
|
43
|
43
|
userGroup; //所属组
|
44
|
44
|
userGroup1; //所属组(搜索)
|
45
|
|
- userTypes: Array<any>; //所有用户类型
|
|
45
|
+ userTypes: Array<any> = []; //所有用户类型
|
46
|
46
|
alldepart: any = []; //所有所属科室
|
47
|
47
|
alldepart1: any = []; //所有所属科室(搜索)
|
48
|
48
|
allUserGroup: Array<any>; //所有用户组
|
|
@@ -68,7 +68,6 @@ export class UsersManagementComponent implements OnInit {
|
68
|
68
|
});
|
69
|
69
|
this.coopBtns = this.tool.initCoopBtns(this.route);
|
70
|
70
|
this.initForm();
|
71
|
|
- this.getAllHospital();
|
72
|
71
|
this.getAllRole();
|
73
|
72
|
this.getUserTypes();
|
74
|
73
|
this.getGender();
|
|
@@ -105,6 +104,7 @@ export class UsersManagementComponent implements OnInit {
|
105
|
104
|
account: this.num || "",
|
106
|
105
|
groupdata: { id: this.userGroup1 || "" },
|
107
|
106
|
hospital: { id: this.hosId || "" },
|
|
107
|
+ userTypeIds: String(this.userTypes.map(v => v.id))
|
108
|
108
|
},
|
109
|
109
|
};
|
110
|
110
|
if (!data.user.dept || !data.user.dept.id) {
|
|
@@ -131,9 +131,9 @@ export class UsersManagementComponent implements OnInit {
|
131
|
131
|
|
132
|
132
|
// 获取所有用户类型
|
133
|
133
|
getUserTypes() {
|
134
|
|
- var that = this;
|
135
|
|
- that.mainService.getDictionary("list", "usertype").subscribe((data) => {
|
136
|
|
- that.userTypes = data;
|
|
134
|
+ this.mainService.getDictionary("list", "usertype").subscribe((data) => {
|
|
135
|
+ this.userTypes = data.filter(v => (v.value == 2 || v.value == 3));
|
|
136
|
+ this.getAllHospital();
|
137
|
137
|
});
|
138
|
138
|
}
|
139
|
139
|
|