fix: KPI排除不可用网元类型的选择

This commit is contained in:
TsMask
2024-04-10 18:54:36 +08:00
parent 43d30e7bfa
commit c674b9b3f9
3 changed files with 12 additions and 3 deletions

View File

@@ -814,7 +814,7 @@ export default {
exportSure:'Confirm whether to export all statistical data',
exportEmpty: "Export data is empty",
showChartSelected: "Show All",
realTimeData: "Real Time 5s Data",
realTimeData: "Real Time Data",
},
customTarget:{
kpiId:' Custom Indicator',

View File

@@ -814,7 +814,7 @@ export default {
exportSure:'确认是否导出全部统计数据',
exportEmpty: "导出数据为空",
showChartSelected: "显示全部",
realTimeData: "实时5s数据",
realTimeData: "实时数据",
},
customTarget:{
kpiId:'自定义指标项',

View File

@@ -566,6 +566,7 @@ function wsMessage(res: Record<string, any>) {
}
onMounted(() => {
// 目前支持的 AMF AUSF MME MOCNGW NSSF SMF UDM UPF
// 获取网元网元列表
neInfoStore.fnNelist().then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
@@ -573,7 +574,15 @@ onMounted(() => {
// 过滤不可用的网元
neCascaderOptions.value = neInfoStore.getNeCascaderOptions.filter(
(item: any) => {
return !['OMC'].includes(item.value);
return ![
'OMC',
'PCF',
'NSSF',
'NEF',
'NRF',
'LMF',
'N3IWF',
].includes(item.value);
}
);
if (neCascaderOptions.value.length === 0) {