优化设备树展示

This commit is contained in:
ChenYi 2025-07-17 17:12:06 +08:00
parent 180718974d
commit 76c9a672e9
4 changed files with 14 additions and 12 deletions

View File

@ -234,7 +234,8 @@
"DeviceId": "DeviceId", "DeviceId": "DeviceId",
"Timestamps": "Timestamps", "Timestamps": "Timestamps",
"FormattedTimestamps": "Formatted Timestamps", "FormattedTimestamps": "Formatted Timestamps",
"DevicePath": "DevicePath" "DevicePath": "DevicePath",
"DeviceAddress": "Device Address"
}, },
"CTWingLog": { "CTWingLog": {
"PlatformTenantId": "PlatformTenantId", "PlatformTenantId": "PlatformTenantId",

View File

@ -234,7 +234,8 @@
"DeviceId": "设备ID", "DeviceId": "设备ID",
"Timestamps": "时标(纳秒)", "Timestamps": "时标(纳秒)",
"FormattedTimestamps": "时标", "FormattedTimestamps": "时标",
"DevicePath": "设备路径" "DevicePath": "设备路径",
"DeviceAddress": "设备地址"
}, },
"CTWingLog": { "CTWingLog": {
"PlatformTenantId": "物联网平台租户Id", "PlatformTenantId": "物联网平台租户Id",

View File

@ -8,8 +8,8 @@ import type {
// 字段名映射配置 // 字段名映射配置
export const fieldNameMapping: FieldMapping = { export const fieldNameMapping: FieldMapping = {
SystemName: '系统名称', SystemName: '系统名称',
ProjectId: '项目ID', // ProjectId: '项目ID',
ProjectName: '项目名称', // ProjectName: '项目名称',
IoTDataType: 'IoT数据类型', IoTDataType: 'IoT数据类型',
DeviceType: '设备类型', DeviceType: '设备类型',
DeviceId: '设备ID', DeviceId: '设备ID',
@ -35,12 +35,12 @@ export const fieldTypeConfig: FieldTypeConfig = {
// 固定字段列表 - 这些字段已经在固定列中定义,不需要在动态列中重复生成 // 固定字段列表 - 这些字段已经在固定列中定义,不需要在动态列中重复生成
const FIXED_FIELDS = [ const FIXED_FIELDS = [
'SystemName', 'SystemName',
'ProjectId',
'DeviceType', 'DeviceType',
'IoTDataType', 'IoTDataType',
'DeviceId', 'DeviceId',
'Timestamps', 'Timestamps',
'FormattedTimestamps', 'FormattedTimestamps',
'DeviceAddress',
]; ];
// 动态生成表格列 // 动态生成表格列

View File

@ -96,13 +96,6 @@ const fixedColumns = [
showOverflow: true, showOverflow: true,
slots: {}, slots: {},
}, },
{
field: 'ProjectId',
title: $t('abp.IoTDBBase.ProjectId'),
minWidth: 150,
showOverflow: true,
slots: {},
},
{ {
field: 'DeviceType', field: 'DeviceType',
title: $t('abp.IoTDBBase.DeviceType'), title: $t('abp.IoTDBBase.DeviceType'),
@ -124,6 +117,13 @@ const fixedColumns = [
showOverflow: true, showOverflow: true,
slots: {}, slots: {},
}, },
{
field: 'DeviceAddress',
title: $t('abp.IoTDBBase.DeviceAddress'),
minWidth: 150,
showOverflow: true,
slots: {},
},
]; ];
// - 使 // - 使