refactor: worker select & employee nationality
This commit is contained in:
parent
8006314ce4
commit
9d745d8e52
5 changed files with 100 additions and 52 deletions
|
|
@ -9,6 +9,7 @@ defineEmits<{
|
|||
withDefaults(
|
||||
defineProps<{
|
||||
employeeAmount: number;
|
||||
fallbackImg?: string;
|
||||
rows: {
|
||||
foreignRefNo: string;
|
||||
employeeName: string;
|
||||
|
|
@ -92,7 +93,11 @@ const columns = [
|
|||
>
|
||||
<template v-slot:img-column="{ props }">
|
||||
<q-avatar class="q-mr-sm" size="md">
|
||||
<q-img :src="props.row.imgUrl"></q-img>
|
||||
<q-img :src="props.row.imgUrl" class="full-height full-width">
|
||||
<template #error>
|
||||
<q-img :src="fallbackImg" :ratio="1" />
|
||||
</template>
|
||||
</q-img>
|
||||
<div
|
||||
class="absolute-bottom-right"
|
||||
style="
|
||||
|
|
@ -121,7 +126,7 @@ const columns = [
|
|||
class="surface-tab bordered rounded flex items-center justify-center q-mx-md"
|
||||
style="width: 30px; height: 30px"
|
||||
>
|
||||
{{ employeeAmount }}
|
||||
{{ employeeAmount || '0' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue