refactor: 优化时间格式显示
- 在多个组件中,将时间格式从 'yyyy-MM-dd' 修改为 'yyyy-MM-dd HH:mm:ss' - 这样可以提供更详细的时间信息,包括时分秒
This commit is contained in:
@@ -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
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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
|
||||
},
|
||||
// {
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
@@ -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: '操作',
|
||||
|
||||
Reference in New Issue
Block a user