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

View File

@@ -272,7 +272,7 @@ const columns = ref<ColumnItem[]>([
key: 'createTime', key: 'createTime',
align: 'center', align: 'center',
width: 180, width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'), customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
sorter: true sorter: true
}, },
{ {

View File

@@ -155,7 +155,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -240,7 +240,7 @@ const columns = ref<ColumnItem[]>([
sorter: true, sorter: true,
hideInTable: true, hideInTable: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -224,7 +224,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -232,7 +232,7 @@ const columns = ref<ColumnItem[]>([
width: 170, width: 170,
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -205,7 +205,7 @@ const columns = ref<ColumnItem[]>([
key: 'createTime', key: 'createTime',
align: 'center', align: 'center',
width: 180, width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'), customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
sorter: true sorter: true
}, },
// { // {

View File

@@ -155,7 +155,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -128,7 +128,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
} }
// { // {
// title: '操作', // title: '操作',

View File

@@ -171,7 +171,7 @@ const columns = ref<ColumnItem[]>([
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
width: 180, width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -176,7 +176,7 @@ const columns = ref<ColumnItem[]>([
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
width: 180, width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -142,7 +142,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -252,7 +252,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
showSorterTooltip: false, showSorterTooltip: false,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -198,7 +198,7 @@ const columns = ref<ColumnItem[]>([
sorter: true, sorter: true,
ellipsis: true, ellipsis: true,
width: 180, width: 180,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
} }
// { // {
// title: '操作', // title: '操作',

View File

@@ -84,7 +84,7 @@ const columns = ref<ColumnItem[]>([
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center', align: 'center',
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd'), customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss'),
width: 180, width: 180,
}, },
{ {

View File

@@ -262,7 +262,7 @@ const columns = ref<ColumnItem[]>([
align: 'center', align: 'center',
showSorterTooltip: false, showSorterTooltip: false,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -400,7 +400,7 @@ const columns = ref<ColumnItem[]>([
sorter: true, sorter: true,
showSorterTooltip: false, showSorterTooltip: false,
ellipsis: true, ellipsis: true,
customRender: ({text}) => toDateString(text, 'yyyy-MM-dd') customRender: ({text}) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',