refactor: do not pass default option
This commit is contained in:
parent
9bedf5f2fe
commit
51a72a50f2
1 changed files with 8 additions and 21 deletions
|
|
@ -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'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue