조직도 부서원 이름순으로 정렬하도록 수정. :: 추후 인사시스템 언어정보에 따라 ordering 처리 해줘야 함.

This commit is contained in:
leejinho 2019-12-05 14:37:40 +09:00
parent ae0a5776a1
commit 298ccfb045

View File

@ -82,6 +82,10 @@ export class Effects {
userInfos.push(...(res as DeptUserData).userInfos); userInfos.push(...(res as DeptUserData).userInfos);
break; break;
case SSVC_TYPE_QUERY_DEPT_USER_RES: case SSVC_TYPE_QUERY_DEPT_USER_RES:
userInfos.sort((a, b) => {
return a.name < b.name ? -1 : a.name > b.name ? 1 : 0;
});
this.store.dispatch( this.store.dispatch(
deptUserSuccess({ deptUserSuccess({
userInfos, userInfos,