fix: udm签约用户新增必填msisdn

This commit is contained in:
TsMask
2023-12-14 11:01:57 +08:00
parent 7edcf1703e
commit e90bc539e9

View File

@@ -454,6 +454,7 @@ const modalStateFrom = Form.useForm(
modalState.from, modalState.from,
reactive({ reactive({
imsi: [{ required: true, message: 'IMSI' + t('common.unableNull') }], imsi: [{ required: true, message: 'IMSI' + t('common.unableNull') }],
msisdn: [{ required: true, message: 'MSISDN' + t('common.unableNull') }],
staticIp: [ staticIp: [
{ required: true, message: 'static ip' + t('common.unableNull') }, { required: true, message: 'static ip' + t('common.unableNull') },
], ],
@@ -473,7 +474,7 @@ const modalStateFrom = Form.useForm(
function fnModalOk() { function fnModalOk() {
const from = Object.assign({}, toRaw(modalState.from)); const from = Object.assign({}, toRaw(modalState.from));
let validateNames = ['imsi', 'staticIp']; let validateNames = ['imsi', 'msisdn', 'staticIp'];
if (from.id === '') { if (from.id === '') {
validateNames.push('smData'); validateNames.push('smData');