ทดลองงาน fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-04 18:16:03 +07:00
parent c83df20a60
commit f565dafb0a
2 changed files with 28 additions and 27 deletions

View file

@ -336,6 +336,7 @@ async function getTable() {
posLevelCandidateId: data.posLevelCandidateId,
posLevelCandidateName: data.posLevelCandidateName,
posmasterId: data.posmasterId,
statusNameCheck: convertContainStatus(data.statusId),
statusName:
convertContainStatus(data.statusId) +
@ -362,11 +363,9 @@ async function getTable() {
: rowsAll.value.filter((x: any) => x.statusId !== "CONTAIN");
//
rowsFilter.value = rows.value.filter(
(e: any) =>
e.draft == "รอส่งตัว" &&
e.positionNumber !== null &&
e.statusName == "เตรียมบรรจุ"
(e: any) => e.draft == "รอส่งตัว" && e.statusNameCheck == "เตรียมบรรจุ"
);
console.log(rows.value);
insertAvatar(rowsAll.value);
})
@ -1243,7 +1242,7 @@ onMounted(async () => {
:props="props"
class="cursor-pointer"
>
<template v-if="col.name === 'position'">
<template v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}
</template>
<template
@ -1252,8 +1251,13 @@ onMounted(async () => {
>
<q-item v-ripple style="padding: 0">
<q-item-section avatar>
<q-avatar size="32px" color="grey-4">
<q-img :src="props.row.avatar" class="photo-profile" />
<q-avatar size="30px" color="grey-4">
<q-img
:src="props.row.avatar"
class="photo-profile"
v-if="props.row.avatar"
/>
<q-img :src="avatar" class="photo-profile" v-else"/>
</q-avatar>
</q-item-section>