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);
|
$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">
|
<div class="row col items-center justify-between full-width no-wrap">
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -177,12 +177,14 @@ const treeProductTypeAndGroup = computed(
|
||||||
name: t('general.type'),
|
name: t('general.type'),
|
||||||
type: 'type',
|
type: 'type',
|
||||||
actionDisabled: true,
|
actionDisabled: true,
|
||||||
|
for: item.name,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'productService',
|
id: 'productService',
|
||||||
name: t('productService.title'),
|
name: t('productService.title'),
|
||||||
type: 'productService',
|
type: 'productService',
|
||||||
actionDisabled: true,
|
actionDisabled: true,
|
||||||
|
for: item.name,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})) ?? [],
|
})) ?? [],
|
||||||
|
|
@ -1172,13 +1174,12 @@ function triggerConfirmCloseWork() {
|
||||||
dialogWarningClose(t, {
|
dialogWarningClose(t, {
|
||||||
action: () => {
|
action: () => {
|
||||||
manageWorkNameDialog.value = false;
|
manageWorkNameDialog.value = false;
|
||||||
if(workNameItems.value[workNameItems.value.length - 1].name ===''){
|
if (workNameItems.value[workNameItems.value.length - 1].name === '') {
|
||||||
|
|
||||||
confirmDeleteWork(
|
confirmDeleteWork(
|
||||||
workNameItems.value[workNameItems.value.length - 1].id,
|
workNameItems.value[workNameItems.value.length - 1].id,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cancel: () => {},
|
cancel: () => {},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue