style: modify time
This commit is contained in:
@@ -138,11 +138,11 @@ const columns: TableColumnList = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "上次登陆时间",
|
label: "上次登陆时间",
|
||||||
prop: "createTime",
|
prop: "lastVisitTime",
|
||||||
width: "155",
|
width: "155",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.createTime
|
return row.lastVisitTime
|
||||||
? dayjs(row.createTime).format("YYYY-MM-DD HH:mm:ss")
|
? dayjs(row.lastVisitTime).format("YYYY-MM-DD HH:mm:ss")
|
||||||
: "";
|
: "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -156,6 +156,16 @@ const columns: TableColumnList = [
|
|||||||
: "";
|
: "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "更新时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
width: "155",
|
||||||
|
formatter: row => {
|
||||||
|
return row.updateTime
|
||||||
|
? dayjs(row.updateTime).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
: "";
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "操作",
|
label: "操作",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
|
|||||||
Reference in New Issue
Block a user