fix: 网元配置一键plmn修改amf-tai/slice失败

This commit is contained in:
TsMask
2025-06-24 17:00:42 +08:00
parent b9659837c2
commit d0add206ba

View File

@@ -231,11 +231,12 @@ const supportMapper = {
name: 'tai', name: 'tai',
display: 'TAI List', display: 'TAI List',
key: ['plmnId'], key: ['plmnId'],
item: (index, data) => { item: (index, param) => {
const plmn = `${param.plmnId.mcc}${param.plmnId.mnc}`;
return { return {
index: index, index: index,
plmnId: '00101', plmnId: plmn,
tac: '4388', tac: param.tac,
}; };
}, },
}, },
@@ -244,12 +245,13 @@ const supportMapper = {
name: 'slice', name: 'slice',
display: 'Slice List', display: 'Slice List',
key: ['plmnId'], key: ['plmnId'],
item: (index, data) => { item: (index, param) => {
const plmn = `${param.plmnId.mcc}${param.plmnId.mnc}`;
return { return {
index: index, index: index,
plmnId: '00101', plmnId: plmn,
sd: '000001', sd: param.snssai.sd,
sst: 1, sst: param.snssai.sst,
}; };
}, },
}, },
@@ -499,7 +501,7 @@ async function toConfig(
> >
<a-row> <a-row>
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-form-item label="DNN_DATA" name="basic.dnn_data"> <a-form-item label="DNN_DATA" name="basic.dnn_data" v-if="false">
<a-input <a-input
v-model:value="modalState.from.dnn_data" v-model:value="modalState.from.dnn_data"
allow-clear allow-clear
@@ -542,7 +544,7 @@ async function toConfig(
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-form-item label="DNN_IMS" name="basic.dnn_ims"> <a-form-item label="DNN_IMS" name="basic.dnn_ims" v-if="false">
<a-input <a-input
v-model:value="modalState.from.dnn_ims" v-model:value="modalState.from.dnn_ims"
allow-clear allow-clear