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',
|
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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
@@ -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: '操作',
|
||||||
|
|||||||
Reference in New Issue
Block a user