0
0
Fork 0
This commit is contained in:
Alex Moreno 2023-08-10 14:33:25 +02:00
parent 930c9cdef1
commit 0287c43b64
3 changed files with 6 additions and 4 deletions

View File

@ -455,7 +455,7 @@ export default {
}, },
cmr: { cmr: {
list: { list: {
total: 'Total {length} records', total: 'Total {0} records',
cmrFk: 'Cmr id', cmrFk: 'Cmr id',
hasCmrDms: `Attached in gestdoc`, hasCmrDms: `Attached in gestdoc`,
true: 'Yes', true: 'Yes',

View File

@ -455,7 +455,7 @@ export default {
}, },
cmr: { cmr: {
list: { list: {
total: 'Total {length} registros', total: 'Total {0} registros',
cmrFk: 'Id cmr', cmrFk: 'Id cmr',
hasCmrDms: 'Adjuntado en gestdoc', hasCmrDms: 'Adjuntado en gestdoc',
true: 'Sí', true: 'Sí',

View File

@ -1,5 +1,5 @@
<script setup> <script setup>
import { computed } from 'vue'; import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'components/ui/VnPaginate.vue';
@ -58,6 +58,8 @@ const columns = computed(() => [
function getProjectUrl() { function getProjectUrl() {
return new URL(window.location).origin; return new URL(window.location).origin;
} }
const my = ref((x) => x);
</script> </script>
<template> <template>
<div class="column items-center"> <div class="column items-center">
@ -80,7 +82,7 @@ function getProjectUrl() {
auto-load auto-load
> >
<template #top> <template #top>
{{ t('route.cmr.list.total', { length: rows.length }) }} {{ t('route.cmr.list.total', [my(rows.length)]) }}
</template> </template>
<template #body-cell-cmrFk="{ value }"> <template #body-cell-cmrFk="{ value }">
<QTd align="right" class="text-primary"> <QTd align="right" class="text-primary">