feat:前世今生修改时间显示,增加用户实名字段

This commit is contained in:
yangqingyuan
2024-08-08 16:30:11 +08:00
parent ee6dcc3557
commit aa26710d9c

View File

@@ -54,7 +54,7 @@
</template> </template>
<template v-if="column.key === 'createTime'"> <template v-if="column.key === 'createTime'">
<a-tooltip :title="`${toDateString(record.createTime)}`"> <a-tooltip :title="`${toDateString(record.createTime)}`">
{{ timeAgo(record.createTime) }} {{ toDateString(record.createTime) }}
</a-tooltip> </a-tooltip>
</template> </template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
@@ -125,14 +125,22 @@
title: '设备编号', title: '设备编号',
dataIndex: 'equipmentCode', dataIndex: 'equipmentCode',
key: 'equipmentCode', key: 'equipmentCode',
width: 180, width: 150,
fixed: 'left' fixed: 'left'
}, },
{ {
title: '操作人', title: '操作人',
dataIndex: 'nickname', dataIndex: 'nickname',
key: 'nickname', key: 'nickname',
width: 180, width: 120,
ellipsis: true,
fixed: 'left'
},
{
title: '用户实名',
dataIndex: 'realName',
key: 'realName',
width: 120,
ellipsis: true, ellipsis: true,
fixed: 'left' fixed: 'left'
}, },
@@ -148,7 +156,7 @@
dataIndex: 'eventType', dataIndex: 'eventType',
key: 'eventType', key: 'eventType',
sorter: true, sorter: true,
width: 180, width: 120,
ellipsis: true ellipsis: true
}, },
{ {
@@ -168,7 +176,7 @@
dataIndex: 'createTime', dataIndex: 'createTime',
key: 'createTime', key: 'createTime',
sorter: true, sorter: true,
width: 280, width: 200,
customRender: ({ text }) => toDateString(text) customRender: ({ text }) => toDateString(text)
} }
// { // {