|
@@ -127,8 +127,10 @@ export class OrderScopeComponent implements OnInit {
|
127
|
127
|
hosTaskTypes = {}; //当前权限下所有院区对应的任务类型
|
128
|
128
|
hosGroups = {}; //当前权限下所有院区对应的人员分组
|
129
|
129
|
getOrderScope() {
|
130
|
|
- this.hosList = this.user.infoPermission.hospitals.filter(v => !this.tool.isDuty(v));
|
131
|
|
- this.taskTypes = this.user.infoPermission.taskTypes;
|
|
130
|
+ let hospitals = this.user.infoPermission.hospitals || []
|
|
131
|
+ this.hosList = hospitals.filter(v => !this.tool.isDuty(v));
|
|
132
|
+ this.taskTypes = this.user.infoPermission.taskTypes || [];
|
|
133
|
+ let userGroups = this.user.infoPermission.groups || [];
|
132
|
134
|
this.userGroups = this.user.infoPermission.groups.filter(v => v.type !== 3);
|
133
|
135
|
this.hosList.forEach((e) => {
|
134
|
136
|
let arrT = [],
|