fix: แก้ tree
This commit is contained in:
parent
f23916b2ea
commit
0fe6cc515e
1 changed files with 14 additions and 3 deletions
|
|
@ -157,9 +157,16 @@ const treeProductTypeAndGroup = computed(() => {
|
||||||
type: 'type',
|
type: 'type',
|
||||||
})) ?? []
|
})) ?? []
|
||||||
: recordTreeProductType.value[item.id]?.map((x) => ({
|
: recordTreeProductType.value[item.id]?.map((x) => ({
|
||||||
...x,
|
...x,
|
||||||
type: 'type',
|
type: 'type',
|
||||||
})) ?? [],
|
})) ?? item._count.type > 0
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
id: '',
|
||||||
|
name: '',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: [],
|
||||||
};
|
};
|
||||||
}) ?? [];
|
}) ?? [];
|
||||||
|
|
||||||
|
|
@ -3992,4 +3999,8 @@ watch(
|
||||||
border-radius: var(--radius-2);
|
border-radius: var(--radius-2);
|
||||||
padding-inline: var(--size-2);
|
padding-inline: var(--size-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* :deep(.q-icon.mdi-play) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue