新增格式化时间

This commit is contained in:
ChenYi 2025-07-17 09:54:45 +08:00
parent 27a71e1d5f
commit 3669aadcb0
4 changed files with 9 additions and 1 deletions

View File

@ -233,6 +233,7 @@
"DeviceType": "DeviceType",
"DeviceId": "DeviceId",
"Timestamps": "Timestamps",
"FormattedTimestamps": "Formatted Timestamps",
"DevicePath": "DevicePath"
},
"CTWingLog": {

View File

@ -233,6 +233,7 @@
"DeviceType": "设备类型",
"DeviceId": "设备ID",
"Timestamps": "时标(纳秒)",
"FormattedTimestamps": "时标",
"DevicePath": "设备路径"
},
"CTWingLog": {

View File

@ -77,6 +77,7 @@ const dynamicColumns = ref<any[]>([]);
const fixedColumns = [
{ title: '序号', type: 'seq', width: 50, field: 'seq', slots: {} },
{ field: 'Timestamps', title: $t('abp.IoTDBBase.Timestamps'), minWidth: 150, showOverflow: true, slots: {} },
{ field: 'FormattedTimestamps', title: $t('abp.IoTDBBase.FormattedTimestamps'), minWidth: 150, showOverflow: true, slots: {} },
{ field: 'SystemName', title: $t('abp.IoTDBBase.SystemName'), minWidth: 150, showOverflow: true, slots: {} },
{ field: 'ProjectId', title: $t('abp.IoTDBBase.ProjectId'), minWidth: 150, showOverflow: true, slots: {} },
{ field: 'DeviceType', title: $t('abp.IoTDBBase.DeviceType'), minWidth: 150, showOverflow: true, slots: {} },

View File

@ -2,7 +2,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import { computed } from 'vue';
import { getSelectResultList, postMetersPage } from '#/api-client';
import { getSelectResultList } from '#/api-client';
import { $t } from '#/locales';
export const querySchema = computed(() => [
@ -146,6 +146,11 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
title: $t('abp.IoTDBBase.Timestamps'),
minWidth: '150',
},
{
field: 'FormattedTimestamps',
title: $t('abp.IoTDBBase.FormattedTimestamps'),
minWidth: '150',
},
{
field: 'SystemName',
title: $t('abp.IoTDBBase.SystemName'),