Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
82b79740
Commit
82b79740
authored
Nov 10, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理模块 手机号码格式验证修改
parent
ec721887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UsersDetail.tsx
src/pages/UserManagement/LIFEUserManagement/UsersDetail.tsx
+2
-2
No files found.
src/pages/UserManagement/LIFEUserManagement/UsersDetail.tsx
View file @
82b79740
...
@@ -57,7 +57,7 @@ const UsersDetail = (props: any) => {
...
@@ -57,7 +57,7 @@ const UsersDetail = (props: any) => {
[
1
,
'Family Member'
],
[
1
,
'Family Member'
],
[
2
,
'Tenant'
],
[
2
,
'Tenant'
],
];
];
const
user_type_status
=
[
'Unregistered'
,
'
r
egistered'
,
'Deregistered'
];
const
user_type_status
=
[
'Unregistered'
,
'
R
egistered'
,
'Deregistered'
];
const
[
DataSaveLoading
,
setDataSaveLoading
]
=
useState
(
false
);
const
[
DataSaveLoading
,
setDataSaveLoading
]
=
useState
(
false
);
...
@@ -200,7 +200,7 @@ const UsersDetail = (props: any) => {
...
@@ -200,7 +200,7 @@ const UsersDetail = (props: any) => {
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
if
(
value
)
{
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
();
callback
();
}
else
{
}
else
{
callback
(
new
Error
(
'Incorrect format of mobile phone number!'
));
callback
(
new
Error
(
'Incorrect format of mobile phone number!'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment