From af828ca107aff9797e6ec994e7a46a2f6042f24f Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 24 Jul 2024 15:52:44 +0700 Subject: [PATCH] fix: edit tree no show icon --- src/pages/04_product-service/MainPage.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d9f47cf9..03c85233 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -149,6 +149,11 @@ const treeProductTypeAndGroup = computed(() => { productGroup.value?.map((item) => { return { ...item, + _count: { + type: recordTreeProductType.value[item.id]?.length ?? 0, + service: item._count.service, + product: item._count.product, + }, type: 'group', children: item.id === currentIdGrop.value @@ -530,14 +535,6 @@ async function fetchListGroups() { totalGroup.value = res.total; maxPageGroup.value = Math.ceil(res.total / pageSizeGroup.value); productGroup.value = res.result; - - // if(currentNode.value){ - // currentNode.value.status = currentStatus.value === 'All' - // ? undefined - // : currentStatus.value === 'ACTIVE' - // ? 'ACTIVE' - // : 'INACTIVE', - // } } } @@ -1448,6 +1445,7 @@ watch( style="color: var(--foreground)" >