refactor: handle img gender
This commit is contained in:
parent
4b6587c806
commit
1638ac35bb
3 changed files with 12 additions and 4 deletions
|
|
@ -507,7 +507,6 @@ watch(
|
|||
:readonly
|
||||
:checkable="!readonly"
|
||||
@check="(wokerIndex) => handleCheck(wokerIndex, props.row)"
|
||||
fallback-img="/images/employee-avatar.png"
|
||||
inTable
|
||||
hideQuantity
|
||||
:check-list="props.row.workerIndex"
|
||||
|
|
|
|||
|
|
@ -135,10 +135,17 @@ watch(
|
|||
class="full-height full-width"
|
||||
>
|
||||
<template #error>
|
||||
<q-img :src="fallbackImg" :ratio="1" />
|
||||
<q-img
|
||||
:src="`/images/employee-avatar-${props.row.gender}.png`"
|
||||
:ratio="1"
|
||||
/>
|
||||
</template>
|
||||
</q-img>
|
||||
<q-img v-else :src="fallbackImg" :ratio="1" />
|
||||
<q-img
|
||||
v-else
|
||||
:src="`/images/employee-avatar-${props.row.gender}.png`"
|
||||
:ratio="1"
|
||||
/>
|
||||
<div
|
||||
class="absolute-bottom-right"
|
||||
style="
|
||||
|
|
|
|||
|
|
@ -481,7 +481,9 @@ function disableCheckAll() {
|
|||
>
|
||||
<template #error>
|
||||
<span class="full-width full-height">
|
||||
<q-img src="/images/employee-avatar.png" />
|
||||
<q-img
|
||||
:src="`/images/employee-avatar-${props.row.request.employee.gender}.png`"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
</q-img>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue