forked from verdnatura/salix-front
feat: adapt to vnInputTime
This commit is contained in:
parent
c15a909225
commit
7884df0acf
|
@ -8,7 +8,7 @@ const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const entityId = computed(() => route.params.id);
|
const entityId = computed(() => route.params.id);
|
||||||
|
|
||||||
const columns = computed(() => [
|
const columns = [
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'date',
|
name: 'date',
|
||||||
|
@ -22,12 +22,9 @@ const columns = computed(() => [
|
||||||
label: t('worker.medical.tableVisibleColumns.time'),
|
label: t('worker.medical.tableVisibleColumns.time'),
|
||||||
create: true,
|
create: true,
|
||||||
component: 'time',
|
component: 'time',
|
||||||
// format: ({ time }) => {
|
attrs: {
|
||||||
// console.log('time: ', time);
|
timeOnly: true,
|
||||||
// if (!time) return;
|
},
|
||||||
// const [hours, minutes] = time.split(':');
|
|
||||||
// return new Date(new Date().setHours(hours, minutes));
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -68,7 +65,7 @@ const columns = computed(() => [
|
||||||
create: true,
|
create: true,
|
||||||
component: 'input',
|
component: 'input',
|
||||||
},
|
},
|
||||||
]);
|
];
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnTable
|
<VnTable
|
||||||
|
|
Loading…
Reference in New Issue