优化设备树展示
This commit is contained in:
parent
180718974d
commit
76c9a672e9
@ -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",
|
||||||
|
|||||||
@ -234,7 +234,8 @@
|
|||||||
"DeviceId": "设备ID",
|
"DeviceId": "设备ID",
|
||||||
"Timestamps": "时标(纳秒)",
|
"Timestamps": "时标(纳秒)",
|
||||||
"FormattedTimestamps": "时标",
|
"FormattedTimestamps": "时标",
|
||||||
"DevicePath": "设备路径"
|
"DevicePath": "设备路径",
|
||||||
|
"DeviceAddress": "设备地址"
|
||||||
},
|
},
|
||||||
"CTWingLog": {
|
"CTWingLog": {
|
||||||
"PlatformTenantId": "物联网平台租户Id",
|
"PlatformTenantId": "物联网平台租户Id",
|
||||||
|
|||||||
@ -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',
|
||||||
];
|
];
|
||||||
|
|
||||||
// 动态生成表格列
|
// 动态生成表格列
|
||||||
|
|||||||
@ -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: {},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// 合并固定列和动态列 - 使用计算属性确保响应式
|
// 合并固定列和动态列 - 使用计算属性确保响应式
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user