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)" >