refactor: refs #6683 update dmsType field and add formatting for date in VnDmsList
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jose Antonio Tubau 2025-04-14 09:09:59 +02:00
parent 49218511d9
commit 5527a7fea8
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import VnDms from 'src/components/common/VnDms.vue';
import VnConfirm from 'components/ui/VnConfirm.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
import { useSession } from 'src/composables/useSession';
import { toDate } from 'src/filters/index';
const route = useRoute();
const quasar = useQuasar();
@ -118,7 +119,7 @@ const columns = computed(() => [
},
{
align: 'left',
field: 'type',
field: 'dmsType',
label: t('globals.type'),
name: 'type',
component: QInput,
@ -127,6 +128,7 @@ const columns = computed(() => [
borderless: true,
'model-value': prop.row.dmsType?.name,
}),
format: (row) => row.name,
},
{
align: 'left',
@ -184,6 +186,7 @@ const columns = computed(() => [
disable: true,
'model-value': prop.row.created,
}),
format: (row) => toDate(row),
},
{
field: 'options',

View File

@ -1,6 +1,6 @@
<script setup>
import { computed, ref } from 'vue';
import { toDate, dashIfEmpty } from 'src/filters/index';
import { toDate } from 'src/filters/index';
import { useI18n } from 'vue-i18n';
import VnTable from 'src/components/VnTable/VnTable.vue';
import VnSection from 'src/components/common/VnSection.vue';