更改UTC时标展示,解决js精度损失的问题

This commit is contained in:
ChenYi 2025-09-18 11:16:44 +08:00
parent 58cb11fa2d
commit ed9ef19805
4 changed files with 9 additions and 3 deletions

View File

@ -81,7 +81,7 @@ export const querySchema = computed(() => [
export const tableSchema: any = computed((): VxeGridProps['columns'] => [
{ title: $t('common.seq'), type: 'seq', width: 50, slots: {} },
{
field: 'timestamps',
field: 'timestampStr',
title: $t('abp.IoTDBBase.Timestamps'),
minWidth: 150,
slots: {},

View File

@ -38,7 +38,7 @@ const FIXED_FIELDS = [
'DeviceType',
'IoTDataType',
'DeviceAddress',
'Timestamps',
'TimestampStr',
'FormattedTimestamps',
'DeviceAddress',
];

View File

@ -81,7 +81,7 @@ export const querySchema = computed(() => [
export const tableSchema: any = computed((): VxeGridProps['columns'] => [
{ title: $t('common.seq'), type: 'seq', width: 50, slots: {} },
{
field: 'timestamps',
field: 'timestampStr',
title: $t('abp.IoTDBBase.Timestamps'),
minWidth: '150',
slots: {},

View File

@ -26,6 +26,12 @@ export const querySchema = computed(() => [
export const tableSchema: any = computed((): VxeGridProps['columns'] => [
{ title: $t('common.seq'), type: 'seq', width: 50 },
{
field: 'timestampStr',
title: $t('abp.IoTDBBase.Timestamps'),
minWidth: 150,
slots: {},
},
{
field: 'formattedTimestamps',
title: $t('abp.IoTDBBase.FormattedTimestamps'),