fix: product & service count

This commit is contained in:
puriphatt 2024-07-03 11:00:12 +00:00
parent 119095ece8
commit 7de60c101f

View file

@ -1150,9 +1150,10 @@ watch(inputSearchProductAndService, async () => {
<AppBox
v-if="productMode === 'group' || productMode === 'type'"
bordered
style="overflow-x: scroll"
class="q-mb-md"
>
<StatCard label-i18n :branch="stat" :dark="$q.dark.isActive" />
<StatCard label-i18n :branch="stat" :dark="$q.dark.isActive" nowrap />
</AppBox>
<div
v-if="productMode === 'group' || productMode === 'type'"
@ -1293,9 +1294,11 @@ watch(inputSearchProductAndService, async () => {
pathTypeName = v.name;
currentIdType = v.id;
productMode = 'service';
await featchStatsService();
await featchStatsProduct();
productAndServiceTab = 'all';
// await featchStatsService();
// await featchStatsProduct();
await fetchListOfProduct();
await fetchListOfService();
await fetchListOfProductAndService();
flowStore.rotate();
}
@ -1426,7 +1429,7 @@ watch(inputSearchProductAndService, async () => {
inputSearchProductAndService = '';
currentStatus = 'All';
pageSizeServiceAndProduct;
await fetchListOfProductAndService();
// await fetchListOfProductAndService();
flowStore.rotate();
}
"
@ -1459,7 +1462,7 @@ watch(inputSearchProductAndService, async () => {
currentPageServiceAndProduct = 1;
inputSearchProductAndService = '';
currentStatus = 'All';
await fetchListOfProduct();
// await fetchListOfProduct();
flowStore.rotate();
}
"
@ -1492,7 +1495,7 @@ watch(inputSearchProductAndService, async () => {
currentPageServiceAndProduct = 1;
inputSearchProductAndService = '';
currentStatus = 'All';
await fetchListOfService();
// await fetchListOfService();
flowStore.rotate();
}
"