This commit is contained in:
parent
6097fb2516
commit
fb7d1fc38e
|
@ -56,8 +56,8 @@ const columns = computed(() => [
|
|||
},
|
||||
]);
|
||||
function getProjectUrl() {
|
||||
return ((new URL(window.location)).origin);
|
||||
};
|
||||
return new URL(window.location).origin;
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="column items-center">
|
||||
|
@ -80,11 +80,16 @@ function getProjectUrl() {
|
|||
auto-load
|
||||
>
|
||||
<template #top>
|
||||
<div v-if="rows.length">
|
||||
{{ t('route.cmr.list.total', [rows.length]) }}
|
||||
</div>
|
||||
</template>
|
||||
<template #body-cell-cmrFk="{ value }">
|
||||
<QTd align="right" class="text-primary">
|
||||
<a :href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`" target="_blank">
|
||||
<a
|
||||
:href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`"
|
||||
target="_blank"
|
||||
>
|
||||
<span class="text-primary">{{ value }}</span>
|
||||
</a>
|
||||
</QTd>
|
||||
|
@ -92,10 +97,12 @@ function getProjectUrl() {
|
|||
<template #body-cell-hasCmrDms="{ value }">
|
||||
<QTd align="center">
|
||||
<QBadge
|
||||
:id="(value) ? 'true' : 'false'"
|
||||
:label="(value)
|
||||
:id="value ? 'true' : 'false'"
|
||||
:label="
|
||||
value
|
||||
? t('route.cmr.list.true')
|
||||
: t('route.cmr.list.false')"
|
||||
: t('route.cmr.list.false')
|
||||
"
|
||||
/>
|
||||
</QTd>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue