Commit 82b79740 authored by Sixiang_Zzb's avatar Sixiang_Zzb

用户管理模块 手机号码格式验证修改

parent ec721887
......@@ -57,7 +57,7 @@ const UsersDetail = (props: any) => {
[1, 'Family Member'],
[2, 'Tenant'],
];
const user_type_status = ['Unregistered', 'registered', 'Deregistered'];
const user_type_status = ['Unregistered', 'Registered', 'Deregistered'];
const [DataSaveLoading, setDataSaveLoading] = useState(false);
......@@ -200,7 +200,7 @@ const UsersDetail = (props: any) => {
const checkData = (rule: any, value: any, callback: any) => {
if (value) {
if (/^1\d{7}|1[3|5|7|8]\d{9}$/g.test(value)) {
if (/^\d{8}|1[3|5|7|8]\d{9}$/g.test(value)) {
callback();
} else {
callback(new Error('Incorrect format of mobile phone number!'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment