From e8de5a2337c5c162c865344f01da623c84f7b1b1 Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Wed, 30 Jul 2025 10:47:39 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E6=95=B0=E6=8D=AE=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=95=B0=E6=8D=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/DataTable.tsx | 6 +++++- src/views/Messagedata/DataTable.tsx | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/Home/DataTable.tsx b/src/views/Home/DataTable.tsx index 3c7fa52..de26bc3 100644 --- a/src/views/Home/DataTable.tsx +++ b/src/views/Home/DataTable.tsx @@ -20,7 +20,11 @@ const DataTable: React.FC<{ { title: '归属协议', key: '归属协议', dataIndex: '归属协议', width: 120, align: 'center' }, { title: '测站编码', key: '测站编码', dataIndex: '测站编码', width: 120, align: 'center' }, { title: '站名', key: '站名', dataIndex: '站名', width: 120, align: 'center' }, - { title: '最后数据时间', key: '最后数据时间', dataIndex: '最后数据时间', width: 120, align: 'center' }, + { + title: '最后数据时间', key: '最后数据时间', dataIndex: '最后数据时间', width: 120, align: 'center', + render: rec => ({moment().format("YYYY-MM-DD HH:mm:ss")}) + + }, { title: '数据类型', key: '数据类型', dataIndex: '数据类型', width: 120, align: 'center' }, { title: '测值', key: '测值', dataIndex: '测值', width: 120, align: 'center' }, { title: '站点状态', key: '站点状态', dataIndex: '站点状态', width: 120, align: 'center', render: val => }, diff --git a/src/views/Messagedata/DataTable.tsx b/src/views/Messagedata/DataTable.tsx index 61172d6..d937d1c 100644 --- a/src/views/Messagedata/DataTable.tsx +++ b/src/views/Messagedata/DataTable.tsx @@ -20,8 +20,15 @@ const [myForm] = Form.useForm(); // 可以获取表单元素实例 { title: '序号', key: 'id', align: 'center', width: 80, render: (_1: any, _2: any, index: number) => ctx.pager.noRender(index) }, { title: '站名', key: '站名', dataIndex: '站名', width: 120, align: 'center' }, { title: '测站编码', key: '测站编码', dataIndex: '测站编码', width: 120, align: 'center' }, - { title: '发送时间', key: '发送时间', dataIndex: '发送时间', width: 120, align: 'center' }, - { title: '接收时间', key: '接收时间', dataIndex: '接收时间', width: 120, align: 'center' }, + { + title: '发送时间', key: '发送时间', dataIndex: '发送时间', width: 120, align: 'center', + render: rec => ({moment().format("YYYY-MM-DD HH:mm:ss")}) + }, + { + title: '接收时间', key: '接收时间', dataIndex: '接收时间', width: 120, align: 'center', + render: rec => ({moment().format("YYYY-MM-DD HH:mm:ss")}) + + }, { title: '归属协议', key: '归属协议', dataIndex: '归属协议', width: 120, align: 'center' }, // {