feat: 基站状态添加MME4G状态
This commit is contained in:
@@ -15,6 +15,12 @@ import {
|
||||
} from '@/api/neData/amf';
|
||||
const { t } = useI18n();
|
||||
import { useRoute } from 'vue-router';
|
||||
import {
|
||||
addMMENbState,
|
||||
delMMENbState,
|
||||
editMMENbState,
|
||||
listMMENbStatelist,
|
||||
} from '@/api/neData/mme';
|
||||
const route = useRoute();
|
||||
|
||||
const nbState = ref<DictType[]>([
|
||||
@@ -204,7 +210,7 @@ function fnRecordDelete(index: string) {
|
||||
}
|
||||
for (const v of tableState.selectedRowKeys) {
|
||||
if (neType === 'MME') {
|
||||
// reqArr.push(delAMFNbState(neId, v));
|
||||
reqArr.push(delMMENbState(neId, v));
|
||||
}
|
||||
if (neType === 'AMF') {
|
||||
reqArr.push(delAMFNbState(neId, v));
|
||||
@@ -212,7 +218,7 @@ function fnRecordDelete(index: string) {
|
||||
}
|
||||
} else {
|
||||
if (neType === 'MME') {
|
||||
// reqArr.push(delAMFNbState(neId, index));
|
||||
reqArr.push(delMMENbState(neId, index));
|
||||
}
|
||||
if (neType === 'AMF') {
|
||||
reqArr.push(delAMFNbState(neId, index));
|
||||
@@ -247,9 +253,9 @@ function fnGetList() {
|
||||
const [neType, neId] = neTypeAndId.value;
|
||||
queryParams.neId = neId;
|
||||
let req = null;
|
||||
// if (neType === 'MME') {
|
||||
// req = listAMFNbStatelist(toRaw(queryParams));
|
||||
// }
|
||||
if (neType === 'MME') {
|
||||
req = listMMENbStatelist(toRaw(queryParams));
|
||||
}
|
||||
if (neType === 'AMF') {
|
||||
req = listAMFNbStatelist(toRaw(queryParams));
|
||||
}
|
||||
@@ -368,17 +374,28 @@ function fnModalVisibleByEdit(edit?: string | number) {
|
||||
* 进行表达规则校验
|
||||
*/
|
||||
function fnModalOk() {
|
||||
const neID = queryParams.neId;
|
||||
if (!neID) return;
|
||||
const [neType, neId] = neTypeAndId.value;
|
||||
if (!neId) return;
|
||||
const from = JSON.parse(JSON.stringify(modalState.from));
|
||||
modalStateFrom
|
||||
.validate()
|
||||
.then(e => {
|
||||
modalState.confirmLoading = true;
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
let result: any = from.state
|
||||
? editAMFNbState(neID, from)
|
||||
: addAMFNbState(neID, from);
|
||||
let result: any = null;
|
||||
if (neType === 'MME') {
|
||||
result = from.state
|
||||
? editMMENbState(neId, from)
|
||||
: addMMENbState(neId, from);
|
||||
}
|
||||
if (neType === 'AMF') {
|
||||
result = from.state
|
||||
? editAMFNbState(neId, from)
|
||||
: addAMFNbState(neId, from);
|
||||
}
|
||||
if (result === null) {
|
||||
return;
|
||||
}
|
||||
result
|
||||
.then((res: any) => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user