更新
This commit is contained in:
parent
57459751dc
commit
31bcad8133
@ -8,6 +8,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
|||||||
|
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
export const querySchema = computed(() => [
|
export const querySchema = computed(() => [
|
||||||
@ -28,6 +30,9 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
|||||||
field: 'formattedTimestamps',
|
field: 'formattedTimestamps',
|
||||||
title: $t('abp.IoTDBBase.FormattedTimestamps'),
|
title: $t('abp.IoTDBBase.FormattedTimestamps'),
|
||||||
minWidth: '150',
|
minWidth: '150',
|
||||||
|
formatter: ({ cellValue }) => {
|
||||||
|
return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'ioTPlatformName',
|
field: 'ioTPlatformName',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user