휴가수정
This commit is contained in:
parent
be2608a112
commit
f369712a81
@ -74,16 +74,13 @@ nextTick(() => {
|
|||||||
const sortedUserList = computed(() => {
|
const sortedUserList = computed(() => {
|
||||||
if (!employeeId.value) return [];
|
if (!employeeId.value) return [];
|
||||||
|
|
||||||
// 관리자가 아닌 사용자만 필터링
|
// 모든 사용자 포함 (관리자 필터링 제거)
|
||||||
const nonAdminUsers = userList.value.filter(user => user.MEMBERROL !== "ROLE_ADMIN");
|
const myProfile = userList.value.find(user => user.MEMBERSEQ === employeeId.value);
|
||||||
|
const otherUsers = userList.value.filter(user => user.MEMBERSEQ !== employeeId.value);
|
||||||
const myProfile = nonAdminUsers.find(user => user.MEMBERSEQ === employeeId.value);
|
|
||||||
const otherUsers = nonAdminUsers.filter(user => user.MEMBERSEQ !== employeeId.value);
|
|
||||||
|
|
||||||
return myProfile ? [myProfile, ...otherUsers] : otherUsers;
|
return myProfile ? [myProfile, ...otherUsers] : otherUsers;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const getUserProfileImage = (profilePath) =>
|
const getUserProfileImage = (profilePath) =>
|
||||||
profilePath && profilePath.trim() ? `${baseUrl}upload/img/profile/${profilePath}` : defaultProfile;
|
profilePath && profilePath.trim() ? `${baseUrl}upload/img/profile/${profilePath}` : defaultProfile;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user