From 1d0044b72e70d7c4b59185d439c69766aa85e9a1 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:31:45 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9B?= =?UTF-8?q?=E0=B8=B8=E0=B9=88=E0=B8=A1=20=20add?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 74 ++++++++++++++--------- 1 file changed, 44 insertions(+), 30 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 272cdfa2..e76327fa 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -9,6 +9,9 @@ import DrawerInfo from 'src/components/DrawerInfo.vue'; import BasicInformation from 'src/components/04_product-service/BasicInformation.vue'; import FormDialog from 'src/components/FormDialog.vue'; import TooltipComponent from 'components/TooltipComponent.vue'; +import ButtonAddComponent from 'src/components/ButtonAddCompoent.vue'; + +import { Status } from 'src/stores/types'; import { dialog } from 'src/stores/utils'; @@ -77,6 +80,8 @@ const currentIdType = ref(''); const resultSearchGroup = ref(); const resultSearchType = ref<(Product & { productGroupId: string })[]>(); +const currentStatus = ref('All'); + async function searchGroup() { const resultList = await fetchListProductService({ query: inputSearch.value, @@ -85,7 +90,6 @@ async function searchGroup() { if (resultList) { resultSearchGroup.value = resultList; } - console.log(resultSearchGroup.value); } async function fetchListType() { @@ -215,6 +219,7 @@ async function submitGroup() { } } + drawerInfo.value = false; await fetchListGroups(); clearForm(); } @@ -227,9 +232,44 @@ onMounted(async () => { }); watch(productMode, () => (inputSearch.value = '')); + +watch(currentStatus, async () => {});