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