fix: update request list card to use AvatarGroup
This commit is contained in:
parent
bb347d297b
commit
f80a22cc78
1 changed files with 19 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue