avatar ทดลองงาน
This commit is contained in:
parent
1f8f704533
commit
8a3efbf45c
1 changed files with 3 additions and 6 deletions
|
|
@ -227,6 +227,7 @@ const getTable = async () => {
|
|||
fullName: data.fullName + " " + data.idCard,
|
||||
name: data.fullName,
|
||||
profilePhoto: data.profilePhoto ?? "",
|
||||
avatar: data.avatar ?? "",
|
||||
organizationName:
|
||||
data.organizationName +
|
||||
" " +
|
||||
|
|
@ -616,15 +617,11 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
<q-item v-ripple>
|
||||
<q-item-section avatar>
|
||||
<img
|
||||
v-if="props.row.profilePhoto == ''"
|
||||
v-if="props.row.avatar == ''"
|
||||
src="@/assets/avatar_user.jpg"
|
||||
class="col-4 img-info"
|
||||
/>
|
||||
<img
|
||||
v-else
|
||||
:src="props.row.profilePhoto"
|
||||
class="col-4 img-info"
|
||||
/>
|
||||
<img v-else :src="props.row.avatar" class="col-4 img-info" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue