refactor(04): tree component for id
This commit is contained in:
parent
1fa79cd584
commit
3a7a6fc84e
2 changed files with 7 additions and 6 deletions
|
|
@ -64,7 +64,7 @@ defineEmits<{
|
|||
$emit('select', node);
|
||||
}
|
||||
"
|
||||
:id="`tree-enter-${node.name}`"
|
||||
:id="`tree-enter-${node.name}${node.for ? `-${node.for}` : ''}`"
|
||||
>
|
||||
<div class="row col items-center justify-between full-width no-wrap">
|
||||
<q-icon
|
||||
|
|
|
|||
|
|
@ -177,12 +177,14 @@ const treeProductTypeAndGroup = computed(
|
|||
name: t('general.type'),
|
||||
type: 'type',
|
||||
actionDisabled: true,
|
||||
for: item.name,
|
||||
},
|
||||
{
|
||||
id: 'productService',
|
||||
name: t('productService.title'),
|
||||
type: 'productService',
|
||||
actionDisabled: true,
|
||||
for: item.name,
|
||||
},
|
||||
],
|
||||
})) ?? [],
|
||||
|
|
@ -1172,13 +1174,12 @@ function triggerConfirmCloseWork() {
|
|||
dialogWarningClose(t, {
|
||||
action: () => {
|
||||
manageWorkNameDialog.value = false;
|
||||
if(workNameItems.value[workNameItems.value.length - 1].name ===''){
|
||||
|
||||
if (workNameItems.value[workNameItems.value.length - 1].name === '') {
|
||||
confirmDeleteWork(
|
||||
workNameItems.value[workNameItems.value.length - 1].id,
|
||||
true,
|
||||
);
|
||||
}
|
||||
true,
|
||||
);
|
||||
}
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue