refs #5995 test
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-08-10 14:10:57 +02:00
parent 6097fb2516
commit fb7d1fc38e
1 changed files with 31 additions and 24 deletions

View File

@ -56,8 +56,8 @@ const columns = computed(() => [
}, },
]); ]);
function getProjectUrl() { function getProjectUrl() {
return ((new URL(window.location)).origin); return new URL(window.location).origin;
}; }
</script> </script>
<template> <template>
<div class="column items-center"> <div class="column items-center">
@ -79,34 +79,41 @@ function getProjectUrl() {
:grid="$q.screen.lt.md" :grid="$q.screen.lt.md"
auto-load auto-load
> >
<template #top> <template #top>
{{ t('route.cmr.list.total', [rows.length]) }} <div v-if="rows.length">
</template> {{ t('route.cmr.list.total', [rows.length]) }}
<template #body-cell-cmrFk="{ value }"> </div>
<QTd align="right" class="text-primary"> </template>
<a :href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`" target="_blank"> <template #body-cell-cmrFk="{ value }">
<QTd align="right" class="text-primary">
<a
:href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`"
target="_blank"
>
<span class="text-primary">{{ value }}</span> <span class="text-primary">{{ value }}</span>
</a> </a>
</QTd> </QTd>
</template> </template>
<template #body-cell-hasCmrDms="{ value }"> <template #body-cell-hasCmrDms="{ value }">
<QTd align="center"> <QTd align="center">
<QBadge <QBadge
:id="(value) ? 'true' : 'false'" :id="value ? 'true' : 'false'"
:label="(value) :label="
? t('route.cmr.list.true') value
: t('route.cmr.list.false')" ? t('route.cmr.list.true')
/> : t('route.cmr.list.false')
</QTd> "
</template> />
</QTd>
</template>
</QTable> </QTable>
</template> </template>
</VnPaginate> </VnPaginate>
</div> </div>
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above> <QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
<QScrollArea class="fit text-grey-8"> <QScrollArea class="fit text-grey-8">
<CmrFilter data-key="CmrList" /> <CmrFilter data-key="CmrList" />
</QScrollArea> </QScrollArea>
</QDrawer> </QDrawer>
</div> </div>
</template> </template>
@ -127,4 +134,4 @@ function getProjectUrl() {
#false { #false {
background-color: $negative; background-color: $negative;
} }
</style> </style>