From 51a72a50f25c9f5a246f3e10e6e7af88b3fe4597 Mon Sep 17 00:00:00 2001
From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Date: Wed, 25 Dec 2024 13:27:29 +0700
Subject: [PATCH] refactor: do not pass default option
---
src/pages/09_task-order/TableTaskOrder.vue | 29 ++++++----------------
1 file changed, 8 insertions(+), 21 deletions(-)
diff --git a/src/pages/09_task-order/TableTaskOrder.vue b/src/pages/09_task-order/TableTaskOrder.vue
index db10b942..5ed55fb5 100644
--- a/src/pages/09_task-order/TableTaskOrder.vue
+++ b/src/pages/09_task-order/TableTaskOrder.vue
@@ -168,19 +168,8 @@ const emit = defineEmits<{
}}
- {{
- dateFormatJS({
- date: props.row.createdAt,
- dayStyle: '2-digit',
- monthStyle: 'short',
- }) || '-'
- }}
- {{
- dateFormatJS({
- date: props.row.createdAt,
- timeOnly: true,
- })
- }}
+ {{ dateFormatJS({ date: props.row.createdAt }) || '-' }}
+ {{ dateFormatJS({ date: props.row.createdAt, timeOnly: true }) }}
{{ getCreatedByName(props.row, $i18n) }}
@@ -275,14 +264,12 @@ const emit = defineEmits<{
},
{
label: $t('taskOrder.issueDate'),
- value: `${dateFormatJS({
- date: props.row.createdAt,
- dayStyle: '2-digit',
- monthStyle: 'short',
- })} ${dateFormatJS({
- date: props.row.createdAt,
- timeOnly: true,
- })}`,
+ value: `${dateFormatJS({ date: props.row.createdAt })} ${dateFormatJS(
+ {
+ date: props.row.createdAt,
+ timeOnly: true,
+ },
+ )}`,
},
{
label: $t('taskOrder.madeBy'),