forked from verdnatura/salix-front
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(() => {
|
const entityId = computed(() => {
|
||||||
return $props.id || route.params.id;
|
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;
|
let salixUrl;
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
@ -48,48 +54,17 @@ function openNewTab(url) {
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
<QList>
|
<QList>
|
||||||
<QItem
|
<QItem
|
||||||
|
v-for="section in claimSections"
|
||||||
|
:key="section.name"
|
||||||
active-class="text-primary"
|
active-class="text-primary"
|
||||||
@click="openNewTab(salixUrl + '/detail')"
|
@click="openNewTab(salixUrl + section.url)"
|
||||||
clickable
|
clickable
|
||||||
v-ripple
|
v-ripple
|
||||||
>
|
>
|
||||||
<QItemSection avatar>
|
<QItemSection avatar>
|
||||||
<QIcon name="disabled_by_default" />
|
<QIcon name="disabled_by_default" />
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
<QItemSection> {{ t('Details') }} </QItemSection>
|
<QItemSection> {{ t(section.name) }} </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>
|
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
</QList>
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
|
|
Loading…
Reference in New Issue