refactor: do not pass default option

This commit is contained in:
Methapon2001 2024-12-25 13:27:29 +07:00
parent 9bedf5f2fe
commit 51a72a50f2

View file

@ -168,19 +168,8 @@ const emit = defineEmits<{
}} }}
</q-td> </q-td>
<q-td v-if="visibleColumns.includes('createdAt')"> <q-td v-if="visibleColumns.includes('createdAt')">
{{ {{ dateFormatJS({ date: props.row.createdAt }) || '-' }}
dateFormatJS({ {{ dateFormatJS({ date: props.row.createdAt, timeOnly: true }) }}
date: props.row.createdAt,
dayStyle: '2-digit',
monthStyle: 'short',
}) || '-'
}}
{{
dateFormatJS({
date: props.row.createdAt,
timeOnly: true,
})
}}
</q-td> </q-td>
<q-td v-if="visibleColumns.includes('createdBy')" class="text-left"> <q-td v-if="visibleColumns.includes('createdBy')" class="text-left">
{{ getCreatedByName(props.row, $i18n) }} {{ getCreatedByName(props.row, $i18n) }}
@ -275,14 +264,12 @@ const emit = defineEmits<{
}, },
{ {
label: $t('taskOrder.issueDate'), label: $t('taskOrder.issueDate'),
value: `${dateFormatJS({ value: `${dateFormatJS({ date: props.row.createdAt })} ${dateFormatJS(
date: props.row.createdAt, {
dayStyle: '2-digit', date: props.row.createdAt,
monthStyle: 'short', timeOnly: true,
})} ${dateFormatJS({ },
date: props.row.createdAt, )}`,
timeOnly: true,
})}`,
}, },
{ {
label: $t('taskOrder.madeBy'), label: $t('taskOrder.madeBy'),