fix: แก้ layout ค้นหา

This commit is contained in:
Net 2024-07-15 17:57:08 +07:00
parent 389876efb3
commit 7fc990ef62

View file

@ -1211,9 +1211,6 @@ onMounted(async () => {
calculateStats(); calculateStats();
await fetchListGroups(); await fetchListGroups();
console.log(treeProductTypeAndGroup.value);
console.log('ddd');
flowStore.rotate(); flowStore.rotate();
}); });
@ -1386,7 +1383,7 @@ watch(inputSearchProductAndService, async () => {
<div class="surface-2 column full-height"> <div class="surface-2 column full-height">
<div <div
class="row bordered-b q-pl-sm text-weight-bold items-center" class="row bordered-b q-pl-sm text-weight-bold items-center"
style="height: 56px" :style="`height: ${$q.screen.lt.md ? '20%' : '56px'}`"
> >
<div class="col">ดการสาขาทงหมด</div> <div class="col">ดการสาขาทงหมด</div>
</div> </div>
@ -1646,14 +1643,15 @@ watch(inputSearchProductAndService, async () => {
<!-- group/type --> <!-- group/type -->
<div <div
v-if="productMode === 'group' || productMode === 'type'" v-if="productMode === 'group' || productMode === 'type'"
class="col justify-between surface-2 items-center full-width full-height justify-between" class="surface-2 items-center full-width full-height justify-between"
> >
<div <div
class="q-px-md row bordered-b justify-between items-center" class="q-px-md row bordered-b justify-between items-center"
style="height: 56px" :class="{ ' ': $q.screen.lt.md }"
:style="`height: ${$q.screen.lt.md ? '20%' : '56px'}`"
> >
<q-input <q-input
style="width: 300px" :class="{ 'col-12': $q.screen.lt.md }"
outlined outlined
dense dense
unelavated unelavated
@ -2370,11 +2368,10 @@ watch(inputSearchProductAndService, async () => {
> >
<div <div
class="row justify-between items-center q-px-md q-py-sm rounded surface-2" class="row justify-between items-center q-px-md q-py-sm rounded surface-2"
style="z-index: 1" :style="`z-index: 1 ; height: ${$q.screen.lt.md ? '20%' : '56px'}`"
> >
<div>
<q-input <q-input
style="width: 300px" :class="{ 'col-12': $q.screen.lt.md }"
outlined outlined
dense dense
unelavated unelavated
@ -2388,7 +2385,7 @@ watch(inputSearchProductAndService, async () => {
<q-icon name="mdi-magnify" /> <q-icon name="mdi-magnify" />
</template> </template>
</q-input> </q-input>
</div>
<div class="row" style="gap: var(--size-2)"> <div class="row" style="gap: var(--size-2)">
<q-btn <q-btn
icon="mdi-tune-vertical-variant" icon="mdi-tune-vertical-variant"
@ -2582,7 +2579,6 @@ watch(inputSearchProductAndService, async () => {
class="flex justify-center items-center surface-1" class="flex justify-center items-center surface-1"
:style="`height: ${hideStat ? '60vh' : '49vh'}`" :style="`height: ${hideStat ? '60vh' : '49vh'}`"
> >
{{ hideStat }}
<NoData :not-found="!!inputSearchProductAndService" /> <NoData :not-found="!!inputSearchProductAndService" />
</div> </div>
<!-- tab --> <!-- tab -->