bug fixed
This commit is contained in:
parent
370fa44579
commit
0766bb6134
@ -193,6 +193,38 @@ export class OrganizationComponent
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.subscribe(list => {
|
.subscribe(list => {
|
||||||
|
if (!list) {
|
||||||
|
this.store
|
||||||
|
.pipe(
|
||||||
|
take(1),
|
||||||
|
select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
|
||||||
|
map(loginRes => {
|
||||||
|
this.store.dispatch(
|
||||||
|
QueryStore.myDeptUser({
|
||||||
|
divCd: 'ORG',
|
||||||
|
companyCode: this.loginInfo.companyCode,
|
||||||
|
seq: loginRes.departmentCode,
|
||||||
|
search: '',
|
||||||
|
searchRange: DeptSearchType.All,
|
||||||
|
senderCompanyCode: this.loginInfo.companyCode,
|
||||||
|
senderEmployeeType: loginRes.userInfo.employeeType
|
||||||
|
})
|
||||||
|
);
|
||||||
|
return loginRes;
|
||||||
|
}),
|
||||||
|
map(loginRes => {
|
||||||
|
this.loginRes = loginRes;
|
||||||
|
this.selectedDepartmentName = {
|
||||||
|
name: loginRes.userInfo.deptName,
|
||||||
|
nameEn: loginRes.userInfo.deptNameEn,
|
||||||
|
nameCn: loginRes.userInfo.deptNameCn
|
||||||
|
};
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.subscribe();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.myDepartmentUserInfoList = list;
|
this.myDepartmentUserInfoList = list;
|
||||||
if (!this.selectedDepartmentUserInfoList) {
|
if (!this.selectedDepartmentUserInfoList) {
|
||||||
this.selectedDepartmentUserInfoList = list;
|
this.selectedDepartmentUserInfoList = list;
|
||||||
@ -205,35 +237,6 @@ export class OrganizationComponent
|
|||||||
this.psDirectiveRef.update();
|
this.psDirectiveRef.update();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.store
|
|
||||||
.pipe(
|
|
||||||
take(1),
|
|
||||||
select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
|
|
||||||
map(loginRes => {
|
|
||||||
this.store.dispatch(
|
|
||||||
QueryStore.myDeptUser({
|
|
||||||
divCd: 'ORG',
|
|
||||||
companyCode: this.loginInfo.companyCode,
|
|
||||||
seq: loginRes.departmentCode,
|
|
||||||
search: '',
|
|
||||||
searchRange: DeptSearchType.All,
|
|
||||||
senderCompanyCode: this.loginInfo.companyCode,
|
|
||||||
senderEmployeeType: loginRes.userInfo.employeeType
|
|
||||||
})
|
|
||||||
);
|
|
||||||
return loginRes;
|
|
||||||
}),
|
|
||||||
map(loginRes => {
|
|
||||||
this.loginRes = loginRes;
|
|
||||||
this.selectedDepartmentName = {
|
|
||||||
name: loginRes.userInfo.deptName,
|
|
||||||
nameEn: loginRes.userInfo.deptNameEn,
|
|
||||||
nameCn: loginRes.userInfo.deptNameCn
|
|
||||||
};
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.subscribe();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewChecked(): void {
|
ngAfterViewChecked(): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user