WIP: 7407-workerMedical #455

Draft
carlossa wants to merge 7 commits from 7407-workerMedical into dev
1 changed files with 5 additions and 8 deletions
Showing only changes of commit 7884df0acf - Show all commits

View File

@ -8,7 +8,7 @@ const { t } = useI18n();
const route = useRoute();
const entityId = computed(() => route.params.id);
const columns = computed(() => [
const columns = [
{
align: 'left',
name: 'date',
@ -22,12 +22,9 @@ const columns = computed(() => [
label: t('worker.medical.tableVisibleColumns.time'),
create: true,
component: 'time',
// format: ({ time }) => {
// console.log('time: ', time);
// if (!time) return;
// const [hours, minutes] = time.split(':');
// return new Date(new Date().setHours(hours, minutes));
// },
attrs: {
timeOnly: true,
},
},
{
align: 'left',
@ -68,7 +65,7 @@ const columns = computed(() => [
create: true,
component: 'input',
},
]);
];
</script>
<template>
<VnTable