ref: v3变更,,根据核心网过滤显示网元

This commit is contained in:
TsMask
2025-09-16 19:41:57 +08:00
parent 847517fdfe
commit 254c49d894
81 changed files with 27708 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ import { Modal } from 'ant-design-vue/es';
import { defineAsyncComponent, onMounted, onUnmounted, reactive } from 'vue';
import { fnRestStepState, stepState } from '../hooks/useStep';
import useI18n from '@/hooks/useI18n';
import { codeNeLicense, stateNeLicense } from '@/api/ne/neLicense';
import { getNeInfo, codeNeLicense } from '@/api/ne/neInfo';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
const { t } = useI18n();
const EditModal = defineAsyncComponent(
@@ -60,10 +60,10 @@ function fnModalOk(e: any) {
return;
}
if (state.timeCount % 5 === 0) {
stateNeLicense(e.neId).then(res => {
getNeInfo(stepState.neInfo.id).then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.from.sn = res.data.sn;
state.from.expire = res.data.expire;
state.from.sn = res.data.serialNum;
state.from.expire = res.data.expiryDate;
state.from.ueNumber = res.data.ueNumber;
state.from.nbNumber = res.data.ueNumber;
@@ -95,15 +95,15 @@ function fnStepEnd() {
}
onMounted(() => {
const { neUid } = stepState.neInfo;
if (neUid) {
const { id, neUid } = stepState.neInfo;
if (id && neUid) {
state.from.neUid = neUid;
state.confirmLoading = true;
stateNeLicense(neUid)
getNeInfo(id)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.from.sn = res.data.sn;
state.from.expire = res.data.expire;
state.from.sn = res.data.serialNum;
state.from.expire = res.data.expiryDate;
} else {
return codeNeLicense(neUid);
}
@@ -178,7 +178,7 @@ onUnmounted(() => {
<EditModal
v-model:open="state.openByFile"
:ne-type="state.from.neType"
:ne-uid="state.from.neUid"
:ne-uid="state.from.neUid"
:reload="true"
@ok="fnModalOk"
@cancel="fnModalCancel"