fix: edit tree no show icon

This commit is contained in:
Net 2024-07-24 15:52:44 +07:00
parent 3a3176c3e5
commit af828ca107

View file

@ -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)"
>
<template #default-header="{ node }">
{{ console.log(node) }}
<div
class="full-width q-py-xs clickable-node"
:class="{