fix(01): search no data
This commit is contained in:
parent
0c9e41feb0
commit
6284b399bc
1 changed files with 12 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ import {
|
||||||
BankBook,
|
BankBook,
|
||||||
} from 'stores/branch/types';
|
} from 'stores/branch/types';
|
||||||
|
|
||||||
|
import NoData from 'src/components/NoData.vue';
|
||||||
import QrCodeUploadDialog from 'src/components/QrCodeUploadDialog.vue';
|
import QrCodeUploadDialog from 'src/components/QrCodeUploadDialog.vue';
|
||||||
import ItemCard from 'src/components/ItemCard.vue';
|
import ItemCard from 'src/components/ItemCard.vue';
|
||||||
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
|
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
|
||||||
|
|
@ -1245,7 +1246,17 @@ watch(currentHq, () => {
|
||||||
</div>
|
</div>
|
||||||
</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
|
<q-table
|
||||||
flat
|
flat
|
||||||
bordered
|
bordered
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue