添加mqtt链接展示

This commit is contained in:
GGJ
2025-04-28 15:51:30 +08:00
parent adc9b5a955
commit 9538b69310
4 changed files with 211 additions and 63 deletions

View File

@@ -283,6 +283,7 @@ const tableStore = new TableStore({
},
{ title: '设备名称', field: 'name' },
{ title: '网络设备ID', field: 'ndid' },
{
title: '设备类型',
field: 'devType',
@@ -305,7 +306,7 @@ const tableStore = new TableStore({
return row.cellValue === 'MQTT' ? 'MQTT' : row.cellValue === 'CLD' ? 'CLD' : row.cellValue
}
},
{ title: '录入时间', field: 'createTime',sortable: true },
{ title: '录入时间', field: 'createTime', sortable: true },
{
title: '使用状态',
@@ -352,6 +353,21 @@ const tableStore = new TableStore({
})
}
},
// { title: 'MQTT状态', field: 'connectStatus', width: 100, },
{
title: 'MQTT状态',
field: 'connectStatus',
width: 100,
render: 'tag',
custom: {
未连接: 'danger',
已连接: 'success'
},
replaceValue: {
未连接: '未连接',
已连接: '已连接'
}
},
{
title: '通讯状态',
field: 'runStatus',
@@ -360,20 +376,11 @@ const tableStore = new TableStore({
custom: {
1: 'danger',
2: 'success'
// 3: 'primary',
// 4: 'primary',
// 5: 'warning'
},
replaceValue: {
1: '离线',
2: '在线'
// 3: '接入',
// 4: '已取消',
// 5: '未接入'
}
// formatter: row => {
// return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入'
// },
},
{