diff --git a/src/views/neUser/base5G/index.vue b/src/views/neUser/base5G/index.vue index 162b0be9..c657a151 100644 --- a/src/views/neUser/base5G/index.vue +++ b/src/views/neUser/base5G/index.vue @@ -74,6 +74,15 @@ let tableColumns = ref([ align: 'center', width: 100, }, + { + title: 'NE Name', + dataIndex: 'neName', + align: 'left', + resizable: true, + width: 200, + minWidth: 150, + maxWidth: 400, + }, { title: 'UE Number', dataIndex: 'ueNum', @@ -89,6 +98,7 @@ let tableColumns = ref([ minWidth: 150, maxWidth: 400, }, + { title: 'Radio Address', dataIndex: 'address', @@ -138,10 +148,11 @@ function fnGetList(pageNum?: number) { queryParams.pageNum = pageNum; } if (!queryParams.neType) { + tableState.data = []; promises.value = []; //同时获取45G基站信息 且在每条信息中添加45G字段(原始数据没有) 已经筛选后的 neCascaderOptions.value.map((item: any) => { - item.children.forEach((child: any) => { + item.children.forEach((child: any) => { promises.value.push( listBase5G({ neId: child.neId, @@ -149,6 +160,14 @@ function fnGetList(pageNum?: number) { nbId: queryParams.id, pageNum: queryParams.pageNum, 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; } @@ -200,6 +220,11 @@ function fnGetList(pageNum?: number) { } tablePagination.total = res.total; tableState.data = res.rows; + + res.rows.forEach((item: any) => { + item.neName = queryParams.neType.join('_'); + }); + if ( tablePagination.total <= (queryParams.pageNum - 1) * tablePagination.pageSize &&