From b490b04828bca00769efc5a0ace674169cd12ecf Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:59:18 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=81=E0=B9=83=E0=B8=8A=E0=B9=89=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index b6d0f7a4..dd6bdab2 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -64,8 +64,19 @@ const { createService, deleteService, editService, + + fetchListWork, + createWork, + fetchListWorkById, + editWork, + deleteWork, + fetchListProductByIdWork, + + fetchListOfWork, } = productServiceStore; +const { workNameItems } = storeToRefs(productServiceStore); + import ItemCard from 'src/components/ItemCard.vue'; import TotalProductComponent from 'src/components/04_product-service/TotalProductComponent.vue'; @@ -85,6 +96,7 @@ const stat = ref< import { useI18n } from 'vue-i18n'; import { onMounted } from 'vue'; import { time } from 'console'; +import { storeToRefs } from 'pinia'; const { t } = useI18n(); @@ -1528,7 +1540,11 @@ watch(currentStatus, async () => { dialogTotalProduct = true; } " - @manage-work-name="manageWorkNameDialog = true" + @manage-work-name=" + () => { + manageWorkNameDialog = true; + } + " @work-properties=" (index) => { currentWorkIndex = index;