fix: update request list card to use AvatarGroup

This commit is contained in:
puriphatt 2024-12-25 16:55:25 +07:00
parent bb347d297b
commit f80a22cc78

View file

@ -258,12 +258,28 @@ function getEmployeeName(
]"
@view="$emit('view', props.row)"
>
<template v-slot:responsiblePerson="{ props }">
<template v-slot:responsiblePerson="{ props: subProps }">
<div class="col-4 app-text-muted q-pr-sm self-center">
{{ props.label }}
{{ subProps.label }}
</div>
<div class="col-8">
<AvatarGroup />
<AvatarGroup
:data="
responsiblePerson(props.row.quotation)?.map((v) => {
return {
name:
$i18n.locale === 'eng'
? `${v.firstNameEN} ${v.lastNameEN}`
: `${v.firstName} ${v.lastName}`,
imgUrl: !v.selectedImage
? v.gender === 'male'
? `/no-img-man.png`
: `/no-img-female.png`
: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`,
};
})
"
/>
</div>
</template>
</QuotationCard>