From 31bcad81337500e13015b1e32a6ef94f117138c9 Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Wed, 6 Aug 2025 17:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/iotdbdatamanagement/telemetryLog/schema.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts index 9f00d1e..5e7d7e3 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts +++ b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts @@ -8,6 +8,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table'; import { computed } from 'vue'; +import dayjs from 'dayjs'; + import { $t } from '#/locales'; export const querySchema = computed(() => [ @@ -28,6 +30,9 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ field: 'formattedTimestamps', title: $t('abp.IoTDBBase.FormattedTimestamps'), minWidth: '150', + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; + }, }, { field: 'ioTPlatformName',