fix: แก้ ข้อมูลไม่แสดง

This commit is contained in:
Net 2024-07-10 11:11:06 +07:00
parent fc0abea637
commit bc7070d0e3

View file

@ -2170,18 +2170,7 @@ watch(inputSearchProductAndService, async () => {
</div>
</div>
<div
v-if="
(productAndServiceTab === 'product' && product?.length === 0) ||
(productAndServiceTab === 'service' && service?.length === 0)
"
class="flex justify-center items-center surface-1 col"
>
<NoData :not-found="!!inputSearchProductAndService" />
</div>
<!-- tab -->
<template v-else>
<q-tabs
<q-tabs
dense
v-model="productAndServiceTab"
class="bordered-b q-px-md"
@ -2234,6 +2223,19 @@ watch(inputSearchProductAndService, async () => {
</div>
</q-tab>
</q-tabs>
<div
v-if="
(productAndServiceTab === 'product' && product?.length === 0) ||
(productAndServiceTab === 'service' && service?.length === 0)
"
class="flex justify-center items-center surface-1 col"
>
<NoData :not-found="!!inputSearchProductAndService" />
</div>
<!-- tab -->
<template v-else>
<div class="col flex scroll full-height q-pa-md surface-1">
<div class="full-width">
<q-table