bugfix
This commit is contained in:
parent
f9dc3d4f16
commit
ac8e9dc325
|
@ -209,27 +209,27 @@ export class OrganizationComponent
|
|||
.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 => {
|
||||
tap(loginRes => {
|
||||
if (!!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
|
||||
})
|
||||
);
|
||||
|
||||
this.selectedDepartmentName = {
|
||||
name: loginRes.userInfo.deptName,
|
||||
nameEn: loginRes.userInfo.deptNameEn,
|
||||
nameCn: loginRes.userInfo.deptNameCn
|
||||
};
|
||||
}
|
||||
this.loginRes = loginRes;
|
||||
this.selectedDepartmentName = {
|
||||
name: loginRes.userInfo.deptName,
|
||||
nameEn: loginRes.userInfo.deptNameEn,
|
||||
nameCn: loginRes.userInfo.deptNameCn
|
||||
};
|
||||
})
|
||||
)
|
||||
.subscribe();
|
||||
|
|
Loading…
Reference in New Issue
Block a user