refactor: 优化时间格式显示

- 在多个组件中,将时间格式从 'yyyy-MM-dd' 修改为 'yyyy-MM-dd HH:mm:ss'
- 这样可以提供更详细的时间信息,包括时分秒
This commit is contained in:
2025-08-12 15:53:17 +08:00
parent 5c203d7f30
commit 332982f31f
16 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ const columns = ref<ColumnItem[]>([
key: 'createTime',
align: 'center',
width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'),
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
sorter: true
},
{
+1 -1
View File
@@ -155,7 +155,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -240,7 +240,7 @@ const columns = ref<ColumnItem[]>([
sorter: true,
hideInTable: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -224,7 +224,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -232,7 +232,7 @@ const columns = ref<ColumnItem[]>([
width: 170,
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -205,7 +205,7 @@ const columns = ref<ColumnItem[]>([
key: 'createTime',
align: 'center',
width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'),
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
sorter: true
},
// {
+1 -1
View File
@@ -155,7 +155,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -128,7 +128,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {
// title: '操作',
+1 -1
View File
@@ -171,7 +171,7 @@ const columns = ref<ColumnItem[]>([
sorter: true,
ellipsis: true,
width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -176,7 +176,7 @@ const columns = ref<ColumnItem[]>([
sorter: true,
ellipsis: true,
width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -142,7 +142,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -252,7 +252,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
showSorterTooltip: false,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -198,7 +198,7 @@ const columns = ref<ColumnItem[]>([
sorter: true,
ellipsis: true,
width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {
// title: '操作',
+1 -1
View File
@@ -84,7 +84,7 @@ const columns = ref<ColumnItem[]>([
title: '创建时间',
dataIndex: 'createTime',
align: 'center',
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'),
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
width: 180,
},
{
+1 -1
View File
@@ -262,7 +262,7 @@ const columns = ref<ColumnItem[]>([
align: 'center',
showSorterTooltip: false,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
+1 -1
View File
@@ -400,7 +400,7 @@ const columns = ref<ColumnItem[]>([
sorter: true,
showSorterTooltip: false,
ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd')
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',