This commit is contained in:
leejinho 2020-02-06 16:26:14 +09:00
parent f9dc3d4f16
commit ac8e9dc325

View File

@ -209,27 +209,27 @@ export class OrganizationComponent
.pipe( .pipe(
take(1), take(1),
select(AppStore.AccountSelector.AuthenticationSelector.loginRes), select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
map(loginRes => { tap(loginRes => {
this.store.dispatch( if (!!loginRes) {
QueryStore.myDeptUser({ this.store.dispatch(
divCd: 'ORG', QueryStore.myDeptUser({
companyCode: this.loginInfo.companyCode, divCd: 'ORG',
seq: loginRes.departmentCode, companyCode: this.loginInfo.companyCode,
search: '', seq: loginRes.departmentCode,
searchRange: DeptSearchType.All, search: '',
senderCompanyCode: this.loginInfo.companyCode, searchRange: DeptSearchType.All,
senderEmployeeType: loginRes.userInfo.employeeType senderCompanyCode: this.loginInfo.companyCode,
}) senderEmployeeType: loginRes.userInfo.employeeType
); })
return loginRes; );
}),
map(loginRes => { this.selectedDepartmentName = {
name: loginRes.userInfo.deptName,
nameEn: loginRes.userInfo.deptNameEn,
nameCn: loginRes.userInfo.deptNameCn
};
}
this.loginRes = loginRes; this.loginRes = loginRes;
this.selectedDepartmentName = {
name: loginRes.userInfo.deptName,
nameEn: loginRes.userInfo.deptNameEn,
nameCn: loginRes.userInfo.deptNameCn
};
}) })
) )
.subscribe(); .subscribe();