neType空时则获取全部基站信息

This commit is contained in:
lai
2024-09-05 16:42:43 +08:00
parent 33f468209a
commit 6874508d3f

View File

@@ -74,6 +74,15 @@ let tableColumns = ref<TableColumnsType>([
align: 'center', align: 'center',
width: 100, width: 100,
}, },
{
title: 'NE Name',
dataIndex: 'neName',
align: 'left',
resizable: true,
width: 200,
minWidth: 150,
maxWidth: 400,
},
{ {
title: 'UE Number', title: 'UE Number',
dataIndex: 'ueNum', dataIndex: 'ueNum',
@@ -89,6 +98,7 @@ let tableColumns = ref<TableColumnsType>([
minWidth: 150, minWidth: 150,
maxWidth: 400, maxWidth: 400,
}, },
{ {
title: 'Radio Address', title: 'Radio Address',
dataIndex: 'address', dataIndex: 'address',
@@ -138,10 +148,11 @@ function fnGetList(pageNum?: number) {
queryParams.pageNum = pageNum; queryParams.pageNum = pageNum;
} }
if (!queryParams.neType) { if (!queryParams.neType) {
tableState.data = [];
promises.value = []; promises.value = [];
//同时获取45G基站信息 且在每条信息中添加45G字段(原始数据没有) 已经筛选后的 //同时获取45G基站信息 且在每条信息中添加45G字段(原始数据没有) 已经筛选后的
neCascaderOptions.value.map((item: any) => { neCascaderOptions.value.map((item: any) => {
item.children.forEach((child: any) => { item.children.forEach((child: any) => {
promises.value.push( promises.value.push(
listBase5G({ listBase5G({
neId: child.neId, neId: child.neId,
@@ -149,6 +160,14 @@ function fnGetList(pageNum?: number) {
nbId: queryParams.id, nbId: queryParams.id,
pageNum: queryParams.pageNum, pageNum: queryParams.pageNum,
pageSize: 10000, pageSize: 10000,
}).then(res => {
// 添加 neName 字段到每一项数据
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
res.rows.forEach(row => {
row.neName = `${child.neType}_${child.neId}`;
});
}
return res;
}) })
); );
}); });
@@ -182,6 +201,7 @@ function fnGetList(pageNum?: number) {
} }
}); });
}); });
return; return;
} }
@@ -200,6 +220,11 @@ function fnGetList(pageNum?: number) {
} }
tablePagination.total = res.total; tablePagination.total = res.total;
tableState.data = res.rows; tableState.data = res.rows;
res.rows.forEach((item: any) => {
item.neName = queryParams.neType.join('_');
});
if ( if (
tablePagination.total <= tablePagination.total <=
(queryParams.pageNum - 1) * tablePagination.pageSize && (queryParams.pageNum - 1) * tablePagination.pageSize &&