Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
a395b5c7
Commit
a395b5c7
authored
Mar 06, 2023
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改新增用户编辑用户限制
parent
632c2cf0
Pipeline
#68596
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
AddUserModal.jsx
src/pages/userCenter/userManage/AddUserModal.jsx
+2
-1
EditUserModal.jsx
src/pages/userCenter/userManage/EditUserModal.jsx
+2
-0
No files found.
src/pages/userCenter/userManage/AddUserModal.jsx
View file @
a395b5c7
...
...
@@ -76,7 +76,7 @@ const AddUserModal = props => {
const
password
=
addUserForm
.
getFieldValue
(
'password'
)
||
''
;
const
phone
=
addUserForm
.
getFieldValue
(
'phone'
)
||
''
;
const
email
=
addUserForm
.
getFieldValue
(
'email'
)
||
''
;
addUserForm
.
validateFields
().
then
(
validate
=>
{
// 正则验证
if
(
loginName
===
''
)
{
notification
.
error
({
...
...
@@ -156,6 +156,7 @@ const AddUserModal = props => {
message
.
error
(
err
);
});
}
});
};
// 密码强度验证
const
changeValue
=
changedFields
=>
{
...
...
src/pages/userCenter/userManage/EditUserModal.jsx
View file @
a395b5c7
...
...
@@ -50,6 +50,7 @@ const EditUserModal = props => {
const
oldPassword
=
passwordForm
.
getFieldValue
(
'oldPassword'
);
const
newPassword
=
passwordForm
.
getFieldValue
(
'newPassword'
);
const
passwordConfirm
=
passwordForm
.
getFieldValue
(
'passwordConfirm'
);
editUserForm
.
validateFields
().
then
(
validate
=>
{
// 正则验证
if
(
loginName
===
''
)
{
notification
.
error
({
...
...
@@ -147,6 +148,7 @@ const EditUserModal = props => {
message
.
error
(
err
);
});
}
});
};
const
title
=
(
<
span
>
...
...
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