refactor: person card fallback img
This commit is contained in:
parent
c324cd6117
commit
b430f40ad6
2 changed files with 8 additions and 14 deletions
|
|
@ -1369,11 +1369,8 @@ const emptyCreateDialog = ref(false);
|
|||
$i18n.locale === 'eng'
|
||||
? `${props.row.firstNameEN} ${props.row.lastNameEN} `.trim()
|
||||
: `${props.row.firstName} ${props.row.lastName} `.trim(),
|
||||
img:
|
||||
props.row.imageUrl ||
|
||||
'/images/customer-' +
|
||||
props.row.customerType +
|
||||
'-avartar.png',
|
||||
img: `${baseUrl}/customer/${props.row.id}/image`,
|
||||
fallbackImg: `/images/customer-${props.row.customerType}-avartar-${props.row.gender}.png`,
|
||||
male: undefined,
|
||||
female: undefined,
|
||||
detail: [
|
||||
|
|
@ -1426,7 +1423,7 @@ const emptyCreateDialog = ref(false);
|
|||
@toggle-status="
|
||||
triggerChangeStatus(props.row.id, props.row.status)
|
||||
"
|
||||
/>
|
||||
></PersonCard>
|
||||
</div>
|
||||
</template>
|
||||
</q-table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue