This commit is contained in:
ChenYi 2025-08-06 17:35:13 +08:00
parent 57459751dc
commit 31bcad8133

View File

@ -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',