更改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'] => [ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
{ title: $t('common.seq'), type: 'seq', width: 50, slots: {} }, { title: $t('common.seq'), type: 'seq', width: 50, slots: {} },
{ {
field: 'timestamps', field: 'timestampStr',
title: $t('abp.IoTDBBase.Timestamps'), title: $t('abp.IoTDBBase.Timestamps'),
minWidth: 150, minWidth: 150,
slots: {}, slots: {},

View File

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

View File

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

View File

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