fix: 看板拓扑网元状态数量统计

This commit is contained in:
TsMask
2024-01-30 10:26:29 +08:00
parent fd07b00b5d
commit 2e1e0f2cff
3 changed files with 52 additions and 18 deletions

View File

@@ -12,7 +12,12 @@ import { listSub } from '@/api/neUser/sub';
import { listUENum } from '@/api/neUser/ue';
import { listBase5G } from '@/api/neUser/base5G';
import { graphNodeClickID, graphState, notNeNodes } from './hooks/useTopology';
import {
graphNodeClickID,
graphState,
notNeNodes,
graphNodeStateNum,
} from './hooks/useTopology';
import { upfTotalFlow, upfTFActive } from './hooks/useUPFTotalFlow';
import { useFullscreen } from '@vueuse/core';
import useWS from './hooks/useWS';
@@ -227,8 +232,16 @@ onBeforeUnmount(() => {
<div class="topology panel">
<div class="inner">
<h3>
<ApartmentOutlined style="color: #68d8fe" />&nbsp;&nbsp;
{{ t('views.dashboard.overview.topology.title') }}
<span>
<ApartmentOutlined style="color: #68d8fe" />&nbsp;&nbsp;
{{ t('views.dashboard.overview.topology.title') }}
</span>
<span>
normal:
<span class="normal"> {{ graphNodeStateNum[0] }} </span>
abnormal:
<span class="abnormal"> {{ graphNodeStateNum[1] }} </span>
</span>
</h3>
<div class="chart">
<Topology />