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: { baseStation: {
list: "List", list: "List",
topology: "Topology", topology: "Topology",
nbName: "Equipment Name", nbName: "RanNodeName",
ueNum: "UE Number",
topologyTitle: "Radio State Graph", topologyTitle: "Radio State Graph",
name: "Radio Name", name: "Name",
namePlease: "text content length 0~64", namePlease: "text content length 0~64",
position: "Radio Address", position: "Position",
positionPlease: "location description. Prohibition of spaces, length of text content 0-64", positionPlease: "location description. Prohibition of spaces, length of text content 0-64",
address: "IP Address", address: "IP Address",
addressPlease: "text content length 0~64", addressPlease: "text content length 0~64",
state: "Radio State", state: "State",
online: "Online", online: "Online",
offline: "Offline", offline: "Offline",
time: "Change Time", time: "Change Time",

View File

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

View File

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

View File

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