fix(01): search no data

This commit is contained in:
puriphatt 2024-10-24 09:43:45 +07:00
parent 0c9e41feb0
commit 6284b399bc

View file

@ -17,6 +17,7 @@ import {
BankBook,
} from 'stores/branch/types';
import NoData from 'src/components/NoData.vue';
import QrCodeUploadDialog from 'src/components/QrCodeUploadDialog.vue';
import ItemCard from 'src/components/ItemCard.vue';
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
@ -1245,7 +1246,17 @@ watch(currentHq, () => {
</div>
</div>
<div class="surface-2 q-pa-md scroll full-width">
<div
v-if="
inputSearch &&
treeData.flatMap((v) => [v, ...v.branch]).length === 0
"
class="row items-center justify-center full-height"
>
<NoData :not-found="!!inputSearch" />
</div>
<div v-else class="surface-2 q-pa-md scroll full-width">
<q-table
flat
bordered