refactor: add show img
This commit is contained in:
parent
a9890c0968
commit
5f26c8bcdc
3 changed files with 43 additions and 11 deletions
|
|
@ -1257,6 +1257,7 @@ watch(currentHq, () => {
|
|||
? 'branchHQLabel'
|
||||
: 'branchLabel',
|
||||
),
|
||||
branchImgUrl: `/branch/${props.row.id}/branch-image`,
|
||||
}"
|
||||
:field-selected="fieldSelected"
|
||||
:badge-field="['branchLabelStatus']"
|
||||
|
|
|
|||
|
|
@ -1129,11 +1129,21 @@ watch(
|
|||
<q-avatar size="md">
|
||||
<q-img
|
||||
:src="
|
||||
props.row.profileImageUrl ?? '/no-profile.png'
|
||||
props.row.profileImageUrl
|
||||
? props.row.profileImageUrl
|
||||
: props.row.gender === 'male'
|
||||
? '/no-img-man.png'
|
||||
: '/no-img-female.png'
|
||||
"
|
||||
>
|
||||
<template #error>
|
||||
<q-img src="/no-profile.png" />
|
||||
<q-img
|
||||
:src="
|
||||
props.row.gender === 'male'
|
||||
? '/no-img-man.png'
|
||||
: '/no-img-female.png'
|
||||
"
|
||||
/>
|
||||
</template>
|
||||
</q-img>
|
||||
</q-avatar>
|
||||
|
|
@ -1354,7 +1364,11 @@ watch(
|
|||
$i18n.locale === 'en-US'
|
||||
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
|
||||
: `${props.row.firstName} ${props.row.lastName}`.trim(),
|
||||
img: props.row.profileImageUrl,
|
||||
img: props.row.profileImageUrl
|
||||
? props.row.profileImageUrl
|
||||
: props.row.gender === 'male'
|
||||
? '/no-img-man.png'
|
||||
: '/no-img-female.png',
|
||||
male: props.row.gender === 'male',
|
||||
female: props.row.gender === 'female',
|
||||
detail: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue