From fae66a2b79cbc32d6f519147e564bc2ff8954bd3 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 10 Jul 2025 10:33:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E7=BB=84=E4=BB=B6=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E8=8E=B7=E5=8F=96=E7=BD=91=E5=85=83=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B9=B6=E6=9B=B4=E6=96=B0=E6=8E=88=E6=9D=83=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ne/neLicense/index.vue | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/views/ne/neLicense/index.vue b/src/views/ne/neLicense/index.vue index e2007e16..2fcf3fd1 100644 --- a/src/views/ne/neLicense/index.vue +++ b/src/views/ne/neLicense/index.vue @@ -321,9 +321,28 @@ function fnRecordStateReload() { onMounted(() => { // 初始字典数据 - getDict('ne_license_status') - .then(res => { - dictStatus.value = res; + getDict('ne_license_status').then(res => { + dictStatus.value = res; + }); + // 获取网元网元列表 + useNeInfoStore() + .fnNelist() + .then(async res => { + if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { + tableState.loading = true; + for (const row of res.data) { + if (row.neType.toUpperCase() === 'OMC') { + continue; + } + await stateNeLicense(row.neType, row.neId); + } + tableState.loading = false; + } else { + message.warning({ + content: t('common.noData'), + duration: 2, + }); + } }) .finally(() => { // 获取列表数据