refs #5293 sections in a array
This commit is contained in:
parent
d210138fff
commit
b6fedd3873
|
@ -21,6 +21,12 @@ const $props = defineProps({
|
|||
const entityId = computed(() => {
|
||||
return $props.id || route.params.id;
|
||||
});
|
||||
const claimSections = [
|
||||
{ name: 'Details', url: '/detail' },
|
||||
{ name: 'Notes', url: '/note/index' },
|
||||
{ name: 'Development', url: '/development' },
|
||||
{ name: 'Action', url: '/action' },
|
||||
];
|
||||
|
||||
let salixUrl;
|
||||
onMounted(async () => {
|
||||
|
@ -48,48 +54,17 @@ function openNewTab(url) {
|
|||
<QSeparator />
|
||||
<QList>
|
||||
<QItem
|
||||
v-for="section in claimSections"
|
||||
:key="section.name"
|
||||
active-class="text-primary"
|
||||
@click="openNewTab(salixUrl + '/detail')"
|
||||
@click="openNewTab(salixUrl + section.url)"
|
||||
clickable
|
||||
v-ripple
|
||||
>
|
||||
<QItemSection avatar>
|
||||
<QIcon name="disabled_by_default" />
|
||||
</QItemSection>
|
||||
<QItemSection> {{ t('Details') }} </QItemSection>
|
||||
</QItem>
|
||||
<QItem
|
||||
active-class="text-primary"
|
||||
@click="openNewTab(salixUrl + '/note/index')"
|
||||
clickable
|
||||
v-ripple
|
||||
>
|
||||
<QItemSection avatar>
|
||||
<QIcon name="disabled_by_default" />
|
||||
</QItemSection>
|
||||
<QItemSection> {{ t('Notes') }} </QItemSection>
|
||||
</QItem>
|
||||
<QItem
|
||||
active-class="text-primary"
|
||||
@click="openNewTab(salixUrl + '/development')"
|
||||
clickable
|
||||
v-ripple
|
||||
>
|
||||
<QItemSection avatar>
|
||||
<QIcon name="disabled_by_default" />
|
||||
</QItemSection>
|
||||
<QItemSection> {{ t('Development') }} </QItemSection>
|
||||
</QItem>
|
||||
<QItem
|
||||
active-class="text-primary"
|
||||
@click="openNewTab(salixUrl + '/action')"
|
||||
clickable
|
||||
v-ripple
|
||||
>
|
||||
<QItemSection avatar>
|
||||
<QIcon name="disabled_by_default" />
|
||||
</QItemSection>
|
||||
<QItemSection> {{ t('Action') }} </QItemSection>
|
||||
<QItemSection> {{ t(section.name) }} </QItemSection>
|
||||
</QItem>
|
||||
</QList>
|
||||
</QScrollArea>
|
||||
|
|
Loading…
Reference in New Issue