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(() => { // 获取列表数据