fix: 基站状态显示设备名和在线用户数

This commit is contained in:
TsMask
2025-01-15 17:55:19 +08:00
parent e36dac9b81
commit 322b5f18ed
4 changed files with 19 additions and 7 deletions

View File

@@ -710,15 +710,16 @@ export default {
baseStation: {
list: "List",
topology: "Topology",
nbName: "Equipment Name",
nbName: "RanNodeName",
ueNum: "UE Number",
topologyTitle: "Radio State Graph",
name: "Radio Name",
name: "Name",
namePlease: "text content length 0~64",
position: "Radio Address",
position: "Position",
positionPlease: "location description. Prohibition of spaces, length of text content 0-64",
address: "IP Address",
addressPlease: "text content length 0~64",
state: "Radio State",
state: "State",
online: "Online",
offline: "Offline",
time: "Change Time",

View File

@@ -711,6 +711,7 @@ export default {
list: "列表",
topology: "拓扑图",
nbName: "设备名称",
ueNum: "在线用户数",
topologyTitle: "基站状态关系图",
name: "基站名称",
namePlease: "文本内容长度0~64",

View File

@@ -104,6 +104,12 @@ let tableColumns = ref<ColumnsType>([
title: t('views.neData.baseStation.nbName'),
dataIndex: 'nbName',
align: 'left',
width: 100,
},
{
title: t('views.neData.baseStation.ueNum'),
dataIndex: 'ueNum',
align: 'left',
width: 80,
},
{
@@ -114,12 +120,12 @@ let tableColumns = ref<ColumnsType>([
width: 80,
},
{
title: t('views.neData.baseStation.time'),
title: t('views.neData.baseStation.time'),
align: 'left',
width: 150,
customRender(opt) {
const record = opt.value;
console.log(opt)
console.log(opt);
if (record.state === 'OFF') {
return record.offTime || '-';
}

View File

@@ -142,7 +142,11 @@ const graphNodeTooltip = new Tooltip({
<div>==============================</div>
<div><strong>ID</strong><span>${nInfo.index}</span></div>
<div><strong>${t('views.neData.baseStation.address')}</strong><span>
${nInfo.address}</span></div>
${nInfo.address ?? '--'}</span></div>
<div><strong>${t('views.neData.baseStation.nbName')}</strong><span>
${nInfo.nbName ?? '--'}</span></div>
<div><strong>${t('views.neData.baseStation.ueNum')}</strong><span>
${nInfo.ueNum ?? '--'}</span></div>
<div><strong>${t('views.neData.baseStation.name')}</strong><span>
${nInfo.name ?? '--'}
</span></div>