ref: v3变更,,完成整合,同步v2.2508.4 -250902

This commit is contained in:
TsMask
2025-09-06 11:27:57 +08:00
parent e943b4dedc
commit 6470ed5bc1
90 changed files with 1724 additions and 1361 deletions

View File

@@ -16,11 +16,14 @@ type StateType = {
openByFile: boolean;
/**授权信息数据 */
from: {
coreUid: string;
neUid: string;
neType: string;
neId: string;
// 下面是状态检查结果
expire: string;
sn: string;
ueNumber: string;
nbNumber: string;
};
/**确定按钮 loading */
confirmLoading: boolean;
@@ -33,10 +36,14 @@ type StateType = {
let state: StateType = reactive({
openByFile: false,
from: {
coreUid: '',
neUid: '',
neType: '',
neId: '',
// 下面是状态检查结果
expire: '',
sn: '',
ueNumber: '',
nbNumber: '',
},
confirmLoading: false,
timeInterval: null,
@@ -59,6 +66,8 @@ function fnModalOk(e: any) {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.from.sn = res.data.sn;
state.from.expire = res.data.expire;
state.from.ueNumber = res.data.ueNumber;
state.from.nbNumber = res.data.ueNumber;
clearInterval(state.timeInterval);
state.timeInterval = null;
@@ -88,18 +97,18 @@ function fnStepEnd() {
}
onMounted(() => {
const { neType, neId } = stepState.neInfo;
if (neId) {
state.from.neType = neType;
state.from.neId = neId;
const { coreUid, neUid } = stepState.neInfo;
if (coreUid && neUid) {
state.from.coreUid = coreUid;
state.from.neUid = neUid;
state.confirmLoading = true;
stateNeLicense(neType, neId)
stateNeLicense(coreUid, neUid)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.from.sn = res.data.sn;
state.from.expire = res.data.expire;
} else {
return codeNeLicense(neType, neId);
return codeNeLicense(coreUid, neUid);
}
})
.finally(() => {
@@ -160,9 +169,11 @@ onUnmounted(() => {
</div>
<div v-if="state.from.sn !== ''" style="font-size: 16px">
<p>{{ t('views.ne.common.neType') }}{{ state.from.neType }}</p>
<p>{{ t('views.ne.common.neUid') }}{{ state.from.neId }}</p>
<p>{{ t('views.ne.common.neUid') }}{{ state.from.neUid }}</p>
<p>{{ t('views.ne.common.serialNum') }}{{ state.from.sn }}</p>
<p>{{ t('views.ne.common.expiryDate') }}{{ state.from.expire }}</p>
<p>{{ t('views.ne.common.ueNumber') }}{{ state.from.ueNumber }}</p>
<p>{{ t('views.ne.common.nbNumber') }}{{ state.from.nbNumber }}</p>
</div>
</a-result>
@@ -170,7 +181,8 @@ onUnmounted(() => {
<EditModal
v-model:open="state.openByFile"
:ne-type="state.from.neType"
:ne-id="state.from.neId"
:ne-uid="state.from.neUid"
:core-uid="state.from.coreUid"
:reload="true"
@ok="fnModalOk"
@cancel="fnModalCancel"