From 5c0909e356250148532df0bb37c10f9c37acb987 Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Tue, 24 Dec 2024 18:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E6=8D=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/overview/hooks/useWS.ts | 12 ++++++------ src/views/dashboard/overview/index.vue | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/dashboard/overview/hooks/useWS.ts b/src/views/dashboard/overview/hooks/useWS.ts index bd3e5f4f..bbda11a9 100644 --- a/src/views/dashboard/overview/hooks/useWS.ts +++ b/src/views/dashboard/overview/hooks/useWS.ts @@ -83,7 +83,7 @@ export default function useWS() { } switch (data.groupId) { // kpiEvent 指标UPF - case '12_' + upfWhoRmUid.value: + case '12_' + upfWhoId.value: if (data.data) { upfFlowParse(data.data); } @@ -172,9 +172,9 @@ export default function useWS() { }); } - /**重新发送至UPF 12_rmUid */ - function reSendUPF(rmUid: string) { - upfWhoRmUid.value = rmUid; + /**重新发送至UPF 12_neId */ + function reSendUPF(neId: string) { + upfWhoId.value = neId; //初始时时无需还原全部属性以及关闭 if (ws.state() === WebSocket.OPEN) { ws.close(); @@ -193,7 +193,7 @@ export default function useWS() { * MME_UE会话事件(GroupID:1011_neId) * IMS_CDR会话事件(GroupID:1005_neId) */ - subGroupID: '12_' + rmUid + ',1010,1011_001,1005_001', + subGroupID: '12_' + neId + ',1010,1011_001,1005_001', }, onmessage: wsMessage, onerror: (ev: any) => { @@ -208,7 +208,7 @@ export default function useWS() { userActivityReset(); upfTotalFlowReset(); topologyReset(); - upfWhoRmUid.value = ''; + upfWhoId.value = ''; }); return { diff --git a/src/views/dashboard/overview/index.vue b/src/views/dashboard/overview/index.vue index 46b5ce37..71adccdd 100644 --- a/src/views/dashboard/overview/index.vue +++ b/src/views/dashboard/overview/index.vue @@ -244,7 +244,7 @@ let queryParams = reactive({ function fnSelectNe(value: any, option: any) { queryParams.neRealId = value; upfWhoId.value = value; - reSendUPF(option.rmUid); + reSendUPF(value); // upfTotalFlow.value.map((item: any) => { // item.requestFlag = false; // });