From 7de60c101f77194ec5d4650ce157354c3a998ec9 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 3 Jul 2024 11:00:12 +0000 Subject: [PATCH] fix: product & service count --- src/pages/04_product-service/MainPage.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 35e92d57..b2035603 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -1150,9 +1150,10 @@ 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(); } "