From 7fe0f5d84df26f29fe59ffa83be5b9cecd8374da Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 26 Jun 2024 21:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/overview/index.vue | 66 +++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/overview/index.vue b/src/views/dashboard/overview/index.vue index 43749ada..74725b92 100644 --- a/src/views/dashboard/overview/index.vue +++ b/src/views/dashboard/overview/index.vue @@ -26,11 +26,20 @@ import useWS from './hooks/useWS'; import useAppStore from '@/store/modules/app'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { useRouter } from 'vue-router'; +import { message } from 'ant-design-vue/lib/components'; +import useNeInfoStore from '@/store/modules/neinfo'; + const router = useRouter(); const appStore = useAppStore(); const { t } = useI18n(); const { wsSend, cdrEventSend, ueEventSend, upfTFSend } = useWS(); +/**网元参数 */ +let neOtions = ref[]>([]); + +/**网元Id */ +let neRealId = ref; + /**概览状态类型 */ type SkimStateType = { /**UDM签约用户数量 */ @@ -189,6 +198,30 @@ onMounted(() => { fnGetSkim().then(() => { loadData(); }); + // 获取网元网元列表 + useNeInfoStore() + .fnNelist() + .then(res => { + if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { + if (res.data.length > 0) { + let arr: Record[] = []; + res.data.forEach(i => { + if (i.neType === 'UPF') { + arr.push({ value: i.neId, label: i.neName }); + } + }); + neOtions.value = arr; + if (arr.length > 0) { + neRealId = arr[0].value; + } + } + } else { + message.warning({ + content: t('common.noData'), + duration: 2, + }); + } + }); }); onBeforeUnmount(() => { @@ -354,12 +387,24 @@ onBeforeUnmount(() => {

   - {{ t('views.dashboard.overview.upfFlow.title') }} + {{ + t('views.dashboard.overview.upfFlow.title') + }} + +
+ +

+
@@ -475,6 +520,23 @@ onBeforeUnmount(() => {
+ +