fix: udm签约用户新增必填msisdn
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user