From 6265cb1a3701339f48ce20fe2abd9e5dd80da328 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 2 Jul 2024 09:58:59 +0000 Subject: [PATCH] fix: 04-product service layout --- src/pages/04_product-service/MainPage.vue | 29 ++++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 660d5434..812606ee 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -29,7 +29,7 @@ import PaginationComponent from 'src/components/PaginationComponent.vue'; import useFlowStore from 'src/stores/flow'; import { Status } from 'src/stores/types'; -import { dialog, dialogWarningClose } from 'src/stores/utils'; +import useUtilsStore, { dialog, dialogWarningClose } from 'src/stores/utils'; import useProductServiceStore from 'src/stores/product-service'; import { @@ -46,6 +46,7 @@ import { } from 'src/stores/product-service/types'; const flowStore = useFlowStore(); +const utilsStore = useUtilsStore(); const productServiceStore = useProductServiceStore(); const optionStore = useOptionStore(); @@ -971,6 +972,9 @@ function cloneData() { } onMounted(async () => { + utilsStore.currentTitle.title = 'mainProductTitle'; + utilsStore.currentTitle.caption = 'mainProductCaption'; + calculateStats(); await fetchListGroups(); flowStore.rotate(); @@ -1075,17 +1079,12 @@ watch(inputSearchProductAndService, async () => { > -
-
- {{ $t('productAndService') }} -
- +
{
-
+
{ > -
{ />
- - +
+
{ " />
- +