perf: 重构网元公共文件编辑参数
This commit is contained in:
@@ -4,7 +4,7 @@ import { PageContainer } from 'antdv-pro-layout';
|
||||
import { message } from 'ant-design-vue/lib';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { getPara5GFilee, savePara5GFile } from '@/api/ne/neInfo';
|
||||
import { getPara5GFilee, listNeInfo, savePara5GFile } from '@/api/ne/neInfo';
|
||||
import useNeInfoStore from '@/store/modules/neinfo';
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -32,29 +32,50 @@ let state: StateType = reactive({
|
||||
syncNe: [],
|
||||
syncMsg: '',
|
||||
from: {
|
||||
basic: {
|
||||
dnn_data: 'internet',
|
||||
dnn_ims: 'ims',
|
||||
oamEnable: true,
|
||||
plmnId: {
|
||||
mcc: '001',
|
||||
mnc: '01',
|
||||
},
|
||||
snmpEnable: false,
|
||||
snssai: {
|
||||
sd: '000001',
|
||||
sst: '1',
|
||||
},
|
||||
tac: 4388,
|
||||
},
|
||||
external: {
|
||||
amfn2_ip: '192.168.8.120',
|
||||
ue_pool: '10.2.1.0/24',
|
||||
upfn3_gw: '192.168.1.1',
|
||||
upfn3_ip: '192.168.8.190/24',
|
||||
upfn6_gw: '192.168.1.1',
|
||||
upfn6_ip: '192.168.8.191/24',
|
||||
},
|
||||
SIPIP: '192.168.5.90',
|
||||
N2IP: '192.168.5.90',
|
||||
|
||||
OMCIP: '172.60.5.100',
|
||||
AMFIP: '172.60.5.120',
|
||||
AUSFIP: '172.60.5.130',
|
||||
UDMIP: '172.60.5.140',
|
||||
SMFIP: '172.60.5.150',
|
||||
PCFIP: '172.60.5.160',
|
||||
NSSFIP: '172.60.5.170',
|
||||
NRFIP: '172.60.5.180',
|
||||
UPFIP: '172.60.5.190',
|
||||
ADBIP: '172.60.5.140',
|
||||
IMSIP: '172.60.5.110',
|
||||
|
||||
S1_MMEIP: '192.168.5.90',
|
||||
S20_MMEIP: '172.60.5.220',
|
||||
S21_MMEIP: '172.60.5.221',
|
||||
|
||||
LTETAC: '88',
|
||||
MCC: '460',
|
||||
MNC: '00',
|
||||
SST: '1',
|
||||
SD: '010204',
|
||||
DNN: 'cmnet',
|
||||
|
||||
NRTAC: '88',
|
||||
KPI_TIMER: '60', // KPI上报周期秒
|
||||
|
||||
UPFType: 'Light', // UPF类型 Standard标准版 Light轻量版
|
||||
UEIP: '10.10.40.0',
|
||||
UEIPMask: '255.255.255.0',
|
||||
|
||||
N3IP: '192.168.5.191',
|
||||
N3Mask: '255.255.240.0',
|
||||
N3GW: '192.168.1.1',
|
||||
N3PCI: '0000:13:00.0',
|
||||
N3MAC: '00:0c:29:10:ac:d7',
|
||||
|
||||
N6IP: '192.168.5.191',
|
||||
N6Mask: '255.255.240.0',
|
||||
N6GW: '192.168.1.1',
|
||||
N6PCI: '0000:1b:00.0',
|
||||
N6MAC: '00:0c:29:10:ac:e1',
|
||||
},
|
||||
confirmLoading: false,
|
||||
});
|
||||
@@ -84,6 +105,7 @@ function fnModalCancel() {
|
||||
state.visible = false;
|
||||
state.sync = false;
|
||||
state.syncNe = [];
|
||||
state.syncMsg = '';
|
||||
}
|
||||
|
||||
/**保存文件数据*/
|
||||
@@ -93,15 +115,56 @@ function fnSaveData() {
|
||||
|
||||
/**获取文件数据*/
|
||||
function fnGetData() {
|
||||
if (state.confirmLoading) return;
|
||||
state.confirmLoading = true;
|
||||
getPara5GFilee()
|
||||
.then(res => {
|
||||
if (typeof res.data === 'object') {
|
||||
Object.assign(state.from, res.data);
|
||||
Promise.all([
|
||||
getPara5GFilee(),
|
||||
listNeInfo({
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
}),
|
||||
]).then(resArr => {
|
||||
// 已保存的配置
|
||||
if (resArr[0].code === RESULT_CODE_SUCCESS) {
|
||||
state.from = resArr[0].data;
|
||||
}
|
||||
// 填充固定网元类型的ip
|
||||
if (
|
||||
resArr[1].code === RESULT_CODE_SUCCESS &&
|
||||
Array.isArray(resArr[1].rows)
|
||||
) {
|
||||
for (const item of resArr[1].rows) {
|
||||
switch (item.neType) {
|
||||
case 'AMF':
|
||||
state.from.AMFIP = item.ip;
|
||||
break;
|
||||
case 'AUSF':
|
||||
state.from.AUSFIP = item.ip;
|
||||
break;
|
||||
case 'UDM':
|
||||
state.from.UDMIP = item.ip;
|
||||
state.from.ADBIP = item.ip;
|
||||
break;
|
||||
case 'SMF':
|
||||
state.from.SMFIP = item.ip;
|
||||
break;
|
||||
case 'PCF':
|
||||
state.from.PCFIP = item.ip;
|
||||
break;
|
||||
case 'NSSF':
|
||||
state.from.NSSFIP = item.ip;
|
||||
break;
|
||||
case 'NRF':
|
||||
state.from.NRFIP = item.ip;
|
||||
break;
|
||||
case 'UPF':
|
||||
state.from.UPFIP = item.ip;
|
||||
break;
|
||||
case 'IMS':
|
||||
state.from.IMSIP = item.ip;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
state.confirmLoading = false;
|
||||
});
|
||||
}
|
||||
@@ -165,114 +228,111 @@ onMounted(() => {
|
||||
:label-col="{ span: 6 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-divider orientation="left">Basic Data </a-divider>
|
||||
<a-divider orientation="left">Basic</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N2IP" name="N2IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N2IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="SIPIP" name="SIPIP">
|
||||
<a-input
|
||||
v-model:value="state.from.SIPIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="NRTAC" name="NRTAC">
|
||||
<a-input
|
||||
v-model:value="state.from.NRTAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="DNN" name="DNN">
|
||||
<a-input
|
||||
v-model:value="state.from.DNN"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item
|
||||
label="oamEnable"
|
||||
name="oamEnable"
|
||||
:label-col="{ span: 3 }"
|
||||
label="MCC"
|
||||
name="MCC"
|
||||
:label-col="{ span: 13 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-switch
|
||||
:checked-children="t('common.switch.open')"
|
||||
:un-checked-children="t('common.switch.shut')"
|
||||
v-model:checked="state.from.basic.oamEnable"
|
||||
></a-switch>
|
||||
<a-input
|
||||
v-model:value="state.from.MCC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item label="MNC" name="MNC">
|
||||
<a-input
|
||||
v-model:value="state.from.MNC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item
|
||||
label="snmpEnable"
|
||||
name="snmpEnable"
|
||||
:label-col="{ span: 3 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-switch
|
||||
:checked-children="t('common.switch.open')"
|
||||
:un-checked-children="t('common.switch.shut')"
|
||||
v-model:checked="state.from.basic.snmpEnable"
|
||||
></a-switch>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="dnn_data" name="dnn_data">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.dnn_data"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="dnn_ims" name="dnn_ims">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.dnn_ims"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="snssai.sd" name="snssai.sd">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.snssai.sd"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="snssai.sst" name="snssai.sst">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.snssai.sst"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="plmnId.mcc" name="plmnId.mcc">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.plmnId.mcc"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="plmnId.mnc" name="plmnId.mnc">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.plmnId.mnc"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-form-item
|
||||
label="tac"
|
||||
name="tac"
|
||||
:label-col="{ span: 3 }"
|
||||
label="SST"
|
||||
name="SST"
|
||||
:label-col="{ span: 13 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-input-number
|
||||
v-model:value="state.from.basic.tac"
|
||||
v-model:value="state.from.SST"
|
||||
:min="1"
|
||||
:max="3"
|
||||
placeholder="1-3"
|
||||
></a-input-number>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item label="SD" name="SD">
|
||||
<a-input
|
||||
v-model:value="state.from.SD"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">OMC</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="OMCIP" name="OMCIP">
|
||||
<a-input
|
||||
v-model:value="state.from.OMCIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="KPI_TIMER" name="KPI_TIMER">
|
||||
<a-input-number
|
||||
v-model:value="state.from.KPI_TIMER"
|
||||
:min="1"
|
||||
:max="65535"
|
||||
placeholder="1-65535"
|
||||
@@ -281,12 +341,84 @@ onMounted(() => {
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">External Data </a-divider>
|
||||
<a-divider orientation="left">MME</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="amfn2_ip" name="amfn2_ip">
|
||||
<a-form-item label="S1_MMEIP" name="S1_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.amfn2_ip"
|
||||
v-model:value="state.from.S1_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="LTETAC" name="LTETAC">
|
||||
<a-input
|
||||
v-model:value="state.from.LTETAC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="S20_MMEIP" name="S20_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.S20_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="S21_MMEIP" name="S21_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.S21_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">UPF</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-form-item
|
||||
label="UPFType"
|
||||
name="UPFType"
|
||||
:label-col="{ span: 3 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="state.from.UPFType"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
>
|
||||
<a-select-option value="Standard" key="Standard">
|
||||
Standard
|
||||
</a-select-option>
|
||||
<a-select-option value="Light" key="Light">
|
||||
Light
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- UPF轻量 -->
|
||||
<template v-if="state.from.UPFType === 'Light'">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N3IP" name="N3IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N3IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3Mask" name="N3Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N3Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
@@ -295,9 +427,18 @@ onMounted(() => {
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="ue_pool" name="ue_pool">
|
||||
<a-form-item label="UEIP" name="UEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.ue_pool"
|
||||
v-model:value="state.from.UEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="UEIPMask" name="UEIPMask">
|
||||
<a-input
|
||||
v-model:value="state.from.UEIPMask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
@@ -305,10 +446,50 @@ onMounted(() => {
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
<!-- UPF标准 -->
|
||||
<template v-if="state.from.UPFType === 'Standard'">
|
||||
<!-- N3 -->
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn3_gw" name="upfn3_gw">
|
||||
<a-form-item label="N3IP" name="N3IP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn3_gw"
|
||||
v-model:value="state.from.N3IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3Mask" name="N3Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N3Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3GW" name="N3GW">
|
||||
<a-input
|
||||
v-model:value="state.from.N3GW"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3PCI" name="N3PCI">
|
||||
<a-input
|
||||
v-model:value="state.from.N3PCI"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3MAC" name="N3MAC">
|
||||
<a-input
|
||||
v-model:value="state.from.N3MAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
@@ -316,32 +497,47 @@ onMounted(() => {
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- N6 -->
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn3_ip" name="upfn3_ip">
|
||||
<a-form-item label="N6IP" name="N6IP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn3_ip"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn6_gw" name="upfn6_gw">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn6_gw"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn6_ip" name="upfn6_ip">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn6_ip"
|
||||
v-model:value="state.from.N6IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6Mask" name="N6Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N6Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6GW" name="N6GW">
|
||||
<a-input
|
||||
v-model:value="state.from.N6GW"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6PCI" name="N6PCI">
|
||||
<a-input
|
||||
v-model:value="state.from.N6PCI"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6MAC" name="N6MAC">
|
||||
<a-input
|
||||
v-model:value="state.from.N6MAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
@@ -349,6 +545,7 @@ onMounted(() => {
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-card>
|
||||
|
||||
@@ -3,19 +3,16 @@ import { Modal, message } from 'ant-design-vue/lib';
|
||||
import { onMounted, reactive, toRaw } from 'vue';
|
||||
import { fnToStepName } from '../hooks/useStep';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { savePara5GFile } from '@/api/ne/neInfo';
|
||||
import { listNeInfo, getPara5GFilee, savePara5GFile } from '@/api/ne/neInfo';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
const { t } = useI18n();
|
||||
|
||||
/**对象信息信息状态类型 */
|
||||
type StateType = {
|
||||
/**保存选择同步到网元窗 */
|
||||
visible: boolean;
|
||||
/**网元选择 */
|
||||
neSelectOtions: any[];
|
||||
/**同步到网元 */
|
||||
sync: boolean;
|
||||
syncNe: string[];
|
||||
syncMsg: string;
|
||||
/**加载等待 */
|
||||
loading: boolean;
|
||||
/**保存文件标记 */
|
||||
saveFile: boolean;
|
||||
/**表单数据 */
|
||||
from: Record<string, any>;
|
||||
/**确定按钮 loading */
|
||||
@@ -24,35 +21,53 @@ type StateType = {
|
||||
|
||||
/**对象信息状态 */
|
||||
let state: StateType = reactive({
|
||||
visible: false,
|
||||
neSelectOtions: [],
|
||||
sync: false,
|
||||
syncNe: [],
|
||||
syncMsg: '',
|
||||
loading: false,
|
||||
saveFile: false,
|
||||
from: {
|
||||
basic: {
|
||||
dnn_data: 'internet',
|
||||
dnn_ims: 'ims',
|
||||
oamEnable: true,
|
||||
plmnId: {
|
||||
mcc: '001',
|
||||
mnc: '01',
|
||||
},
|
||||
snmpEnable: false,
|
||||
snssai: {
|
||||
sd: '000001',
|
||||
sst: '1',
|
||||
},
|
||||
tac: 4388,
|
||||
},
|
||||
external: {
|
||||
amfn2_ip: '192.168.8.120',
|
||||
ue_pool: '10.2.1.0/24',
|
||||
upfn3_gw: '192.168.1.1',
|
||||
upfn3_ip: '192.168.8.190/24',
|
||||
upfn6_gw: '192.168.1.1',
|
||||
upfn6_ip: '192.168.8.191/24',
|
||||
},
|
||||
SIPIP: '192.168.5.90',
|
||||
N2IP: '192.168.5.90',
|
||||
|
||||
OMCIP: '172.60.5.100',
|
||||
AMFIP: '172.60.5.120',
|
||||
AUSFIP: '172.60.5.130',
|
||||
UDMIP: '172.60.5.140',
|
||||
SMFIP: '172.60.5.150',
|
||||
PCFIP: '172.60.5.160',
|
||||
NSSFIP: '172.60.5.170',
|
||||
NRFIP: '172.60.5.180',
|
||||
UPFIP: '172.60.5.190',
|
||||
ADBIP: '172.60.5.140',
|
||||
IMSIP: '172.60.5.110',
|
||||
|
||||
S1_MMEIP: '192.168.5.90',
|
||||
S20_MMEIP: '172.60.5.220',
|
||||
S21_MMEIP: '172.60.5.221',
|
||||
|
||||
LTETAC: '88',
|
||||
MCC: '460',
|
||||
MNC: '00',
|
||||
SST: '1',
|
||||
SD: '010204',
|
||||
DNN: 'cmnet',
|
||||
|
||||
NRTAC: '88',
|
||||
KPI_TIMER: '60', // KPI上报周期秒
|
||||
|
||||
UPFType: 'Light', // UPF类型 Standard标准版 Light轻量版
|
||||
UEIP: '10.10.40.0',
|
||||
UEIPMask: '255.255.255.0',
|
||||
|
||||
N3IP: '192.168.5.191',
|
||||
N3Mask: '255.255.240.0',
|
||||
N3GW: '192.168.1.1',
|
||||
N3PCI: '0000:13:00.0',
|
||||
N3MAC: '00:0c:29:10:ac:d7',
|
||||
|
||||
N6IP: '192.168.5.191',
|
||||
N6Mask: '255.255.240.0',
|
||||
N6GW: '192.168.1.1',
|
||||
N6PCI: '0000:1b:00.0',
|
||||
N6MAC: '00:0c:29:10:ac:e1',
|
||||
},
|
||||
confirmLoading: false,
|
||||
});
|
||||
@@ -64,13 +79,14 @@ function fnSave() {
|
||||
savePara5GFile({
|
||||
fileType: 'yaml',
|
||||
content: toRaw(state.from),
|
||||
syncNe: state.sync ? state.syncNe : [],
|
||||
syncNe: [],
|
||||
})
|
||||
.then(res => {
|
||||
if (state.sync) {
|
||||
state.syncMsg = res.msg;
|
||||
} else {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success('Save Success');
|
||||
state.saveFile = true;
|
||||
} else {
|
||||
message.warning(res.nsg);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -78,6 +94,62 @@ function fnSave() {
|
||||
});
|
||||
}
|
||||
|
||||
/**获取网元列表填充IP */
|
||||
function fnGetList() {
|
||||
state.loading = true;
|
||||
Promise.all([
|
||||
getPara5GFilee(),
|
||||
listNeInfo({
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
}),
|
||||
]).then(resArr => {
|
||||
// 已保存的配置
|
||||
if (resArr[0].code === RESULT_CODE_SUCCESS) {
|
||||
state.from = resArr[0].data;
|
||||
}
|
||||
// 填充固定网元类型的ip
|
||||
if (
|
||||
resArr[1].code === RESULT_CODE_SUCCESS &&
|
||||
Array.isArray(resArr[1].rows)
|
||||
) {
|
||||
for (const item of resArr[1].rows) {
|
||||
switch (item.neType) {
|
||||
case 'AMF':
|
||||
state.from.AMFIP = item.ip;
|
||||
break;
|
||||
case 'AUSF':
|
||||
state.from.AUSFIP = item.ip;
|
||||
break;
|
||||
case 'UDM':
|
||||
state.from.UDMIP = item.ip;
|
||||
state.from.ADBIP = item.ip;
|
||||
break;
|
||||
case 'SMF':
|
||||
state.from.SMFIP = item.ip;
|
||||
break;
|
||||
case 'PCF':
|
||||
state.from.PCFIP = item.ip;
|
||||
break;
|
||||
case 'NSSF':
|
||||
state.from.NSSFIP = item.ip;
|
||||
break;
|
||||
case 'NRF':
|
||||
state.from.NRFIP = item.ip;
|
||||
break;
|
||||
case 'UPF':
|
||||
state.from.UPFIP = item.ip;
|
||||
break;
|
||||
case 'IMS':
|
||||
state.from.IMSIP = item.ip;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
state.loading = false;
|
||||
});
|
||||
}
|
||||
|
||||
/**返回上一步 */
|
||||
function fnStepPrev() {
|
||||
Modal.confirm({
|
||||
@@ -101,124 +173,126 @@ function fnStepNext(stepName: 'NeInfoSoftwareInstall') {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fnGetList();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="ne">
|
||||
<a-spin tip="Loading..." style="width: 100%" :spinning="state.loading">
|
||||
<a-form
|
||||
name="para5GFileeFrom"
|
||||
layout="horizontal"
|
||||
:label-col="{ span: 6 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-divider orientation="left">Basic Data </a-divider>
|
||||
<a-divider orientation="left">Basic</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N2IP" name="N2IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N2IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="SIPIP" name="SIPIP">
|
||||
<a-input
|
||||
v-model:value="state.from.SIPIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="NRTAC" name="NRTAC">
|
||||
<a-input
|
||||
v-model:value="state.from.NRTAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="DNN" name="DNN">
|
||||
<a-input
|
||||
v-model:value="state.from.DNN"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item
|
||||
label="oamEnable"
|
||||
name="oamEnable"
|
||||
:label-col="{ span: 3 }"
|
||||
label="MCC"
|
||||
name="MCC"
|
||||
:label-col="{ span: 13 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-switch
|
||||
:checked-children="t('common.switch.open')"
|
||||
:un-checked-children="t('common.switch.shut')"
|
||||
v-model:checked="state.from.basic.oamEnable"
|
||||
></a-switch>
|
||||
<a-input
|
||||
v-model:value="state.from.MCC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item label="MNC" name="MNC">
|
||||
<a-input
|
||||
v-model:value="state.from.MNC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item
|
||||
label="snmpEnable"
|
||||
name="snmpEnable"
|
||||
:label-col="{ span: 3 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-switch
|
||||
:checked-children="t('common.switch.open')"
|
||||
:un-checked-children="t('common.switch.shut')"
|
||||
v-model:checked="state.from.basic.snmpEnable"
|
||||
></a-switch>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="dnn_data" name="dnn_data">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.dnn_data"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="dnn_ims" name="dnn_ims">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.dnn_ims"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="snssai.sd" name="snssai.sd">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.snssai.sd"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="snssai.sst" name="snssai.sst">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.snssai.sst"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="plmnId.mcc" name="plmnId.mcc">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.plmnId.mcc"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="plmnId.mnc" name="plmnId.mnc">
|
||||
<a-input
|
||||
v-model:value="state.from.basic.plmnId.mnc"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-form-item
|
||||
label="tac"
|
||||
name="tac"
|
||||
:label-col="{ span: 3 }"
|
||||
label="SST"
|
||||
name="SST"
|
||||
:label-col="{ span: 13 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-input-number
|
||||
v-model:value="state.from.basic.tac"
|
||||
v-model:value="state.from.SST"
|
||||
:min="1"
|
||||
:max="3"
|
||||
placeholder="1-3"
|
||||
></a-input-number>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="6" :xs="24">
|
||||
<a-form-item label="SD" name="SD">
|
||||
<a-input
|
||||
v-model:value="state.from.SD"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">OMC</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="OMCIP" name="OMCIP">
|
||||
<a-input
|
||||
v-model:value="state.from.OMCIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="KPI_TIMER" name="KPI_TIMER">
|
||||
<a-input-number
|
||||
v-model:value="state.from.KPI_TIMER"
|
||||
:min="1"
|
||||
:max="65535"
|
||||
placeholder="1-65535"
|
||||
@@ -227,67 +301,38 @@ function fnStepNext(stepName: 'NeInfoSoftwareInstall') {
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">External Data </a-divider>
|
||||
<a-divider orientation="left">MME</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="amfn2_ip" name="amfn2_ip">
|
||||
<a-form-item label="S1_MMEIP" name="S1_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.amfn2_ip"
|
||||
v-model:value="state.from.S1_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="LTETAC" name="LTETAC">
|
||||
<a-input
|
||||
v-model:value="state.from.LTETAC"
|
||||
placeholder="1-65535"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="ue_pool" name="ue_pool">
|
||||
<a-form-item label="S20_MMEIP" name="S20_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.ue_pool"
|
||||
v-model:value="state.from.S20_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn3_gw" name="upfn3_gw">
|
||||
<a-form-item label="S21_MMEIP" name="S21_MMEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn3_gw"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn3_ip" name="upfn3_ip">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn3_ip"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn6_gw" name="upfn6_gw">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn6_gw"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="upfn6_ip" name="upfn6_ip">
|
||||
<a-input
|
||||
v-model:value="state.from.external.upfn6_ip"
|
||||
v-model:value="state.from.S21_MMEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
@@ -296,7 +341,174 @@ function fnStepNext(stepName: 'NeInfoSoftwareInstall') {
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-divider orientation="left">UPF</a-divider>
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="24" :md="24" :xs="24">
|
||||
<a-form-item
|
||||
label="UPFType"
|
||||
name="UPFType"
|
||||
:label-col="{ span: 3 }"
|
||||
:label-wrap="true"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="state.from.UPFType"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
>
|
||||
<a-select-option value="Standard" key="Standard">
|
||||
Standard
|
||||
</a-select-option>
|
||||
<a-select-option value="Light" key="Light">
|
||||
Light
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- UPF轻量 -->
|
||||
<template v-if="state.from.UPFType === 'Light'">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N3IP" name="N3IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N3IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3Mask" name="N3Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N3Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="UEIP" name="UEIP">
|
||||
<a-input
|
||||
v-model:value="state.from.UEIP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="UEIPMask" name="UEIPMask">
|
||||
<a-input
|
||||
v-model:value="state.from.UEIPMask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
<!-- UPF标准 -->
|
||||
<template v-if="state.from.UPFType === 'Standard'">
|
||||
<!-- N3 -->
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N3IP" name="N3IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N3IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3Mask" name="N3Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N3Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3GW" name="N3GW">
|
||||
<a-input
|
||||
v-model:value="state.from.N3GW"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3PCI" name="N3PCI">
|
||||
<a-input
|
||||
v-model:value="state.from.N3PCI"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N3MAC" name="N3MAC">
|
||||
<a-input
|
||||
v-model:value="state.from.N3MAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- N6 -->
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-form-item label="N6IP" name="N6IP">
|
||||
<a-input
|
||||
v-model:value="state.from.N6IP"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6Mask" name="N6Mask">
|
||||
<a-input
|
||||
v-model:value="state.from.N6Mask"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6GW" name="N6GW">
|
||||
<a-input
|
||||
v-model:value="state.from.N6GW"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6PCI" name="N6PCI">
|
||||
<a-input
|
||||
v-model:value="state.from.N6PCI"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="N6MAC" name="N6MAC">
|
||||
<a-input
|
||||
v-model:value="state.from.N6MAC"
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="50"
|
||||
>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
|
||||
<div class="ne-oper">
|
||||
<a-space direction="horizontal" :size="18">
|
||||
@@ -308,7 +520,11 @@ function fnStepNext(stepName: 'NeInfoSoftwareInstall') {
|
||||
>
|
||||
保存信息
|
||||
</a-button>
|
||||
<a-button type="dashed" @click="fnStepNext('NeInfoSoftwareInstall')">
|
||||
<a-button
|
||||
type="dashed"
|
||||
@click="fnStepNext('NeInfoSoftwareInstall')"
|
||||
:disabled="!state.saveFile"
|
||||
>
|
||||
下一步
|
||||
</a-button>
|
||||
</a-space>
|
||||
@@ -323,8 +539,10 @@ function fnStepNext(stepName: 'NeInfoSoftwareInstall') {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
& > form {
|
||||
height: 90%;
|
||||
& .ant-form {
|
||||
height: 70vh;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
&-oper {
|
||||
padding-top: 24px;
|
||||
|
||||
Reference in New Issue
Block a user