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