forked from verdnatura/salix-front
Replace Customer Mandates dateTime formatting with new utils
This commit is contained in:
parent
fb59ac1f2f
commit
093c367d7e
|
@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
import { toDateHourMinSec } from 'src/filters';
|
import { toDateTimeFormat } from 'src/filters/date';
|
||||||
|
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
|
||||||
|
@ -74,14 +74,14 @@ const columns = computed(() => [
|
||||||
field: 'created',
|
field: 'created',
|
||||||
label: t('Register date'),
|
label: t('Register date'),
|
||||||
name: 'registerDate',
|
name: 'registerDate',
|
||||||
format: (value) => toDateHourMinSec(value),
|
format: (value) => toDateTimeFormat(value),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
field: 'finished',
|
field: 'finished',
|
||||||
label: t('End date'),
|
label: t('End date'),
|
||||||
name: 'endDate',
|
name: 'endDate',
|
||||||
format: (value) => (value ? toDateHourMinSec(value) : '-'),
|
format: (value) => (value ? toDateTimeFormat(value) : '-'),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue