增加MME
This commit is contained in:
@@ -10,7 +10,7 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
|
||||
export async function listBase5G(query: Record<string, any>) {
|
||||
query.nbId = query.id;
|
||||
const result = await request({
|
||||
url: '/api/rest/ueManagement/v1/elementType/amf/objectType/nbInfo',
|
||||
url: `/api/rest/ueManagement/v1/elementType/${query.neName.toLowerCase()}/objectType/nbInfo`,
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
|
||||
@@ -18,6 +18,8 @@ let neOtions = ref<Record<string, any>[]>([]);
|
||||
let queryParams = reactive({
|
||||
/**网元ID */
|
||||
neId: undefined,
|
||||
/**网元名称 */
|
||||
neName: undefined,
|
||||
/**GNB_ID */
|
||||
id: '',
|
||||
/**当前页数 */
|
||||
@@ -144,7 +146,11 @@ function fnGetList(pageNum?: number) {
|
||||
}
|
||||
tablePagination.total = res.total;
|
||||
tableState.data = res.rows;
|
||||
if (tablePagination.total <=(queryParams.pageNum - 1) * tablePagination.pageSize &&queryParams.pageNum !== 1) {
|
||||
if (
|
||||
tablePagination.total <=
|
||||
(queryParams.pageNum - 1) * tablePagination.pageSize &&
|
||||
queryParams.pageNum !== 1
|
||||
) {
|
||||
tableState.loading = false;
|
||||
fnGetList(queryParams.pageNum - 1);
|
||||
}
|
||||
@@ -162,13 +168,14 @@ onMounted(() => {
|
||||
if (res.data.length > 0) {
|
||||
let arr: Record<string, any>[] = [];
|
||||
res.data.forEach(i => {
|
||||
if (i.neType === 'AMF') {
|
||||
arr.push({ value: i.neId, label: i.neName });
|
||||
if (i.neType === 'AMF' || i.neType === 'MME') {
|
||||
arr.push({ value: i.neName, label: i.neName });
|
||||
}
|
||||
});
|
||||
neOtions.value = arr;
|
||||
if (arr.length > 0) {
|
||||
queryParams.neId = arr[0].value;
|
||||
queryParams.neName = arr[0].value;
|
||||
queryParams.neId = arr[0].value.split('_')[1];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -198,7 +205,7 @@ onMounted(() => {
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
<a-form-item :label="t('views.neUser.base5G.neType')" name="neId ">
|
||||
<a-select
|
||||
v-model:value="queryParams.neId"
|
||||
v-model:value="queryParams.neName"
|
||||
:options="neOtions"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user