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
dfaf32e5
Commit
dfaf32e5
authored
Aug 03, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户管理用户鉴权功能
parent
92907699
Pipeline
#32458
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
AddUserModal.jsx
src/pages/userCenter/userManage/AddUserModal.jsx
+4
-5
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+9
-7
No files found.
src/pages/userCenter/userManage/AddUserModal.jsx
View file @
dfaf32e5
...
...
@@ -35,16 +35,15 @@ const AddUserModal = props => {
message
:
'提交失败'
,
description
:
'登录名不支持中文!'
,
});
}
else
if
(
password
.
length
<
6
)
{
}
else
if
(
password
===
''
)
{
notification
.
error
({
message
:
'提交失败'
,
description
:
'密码
至少为6位,且包含数字和字母
!'
,
description
:
'密码
不能为空
!'
,
});
}
else
if
(
password
===
''
)
{
}
else
if
(
password
.
length
<
6
)
{
notification
.
error
({
message
:
'提交失败'
,
description
:
'密码
不能为空
!'
,
description
:
'密码
至少为6位,且包含数字和字母
!'
,
});
}
else
if
(
userName
===
''
)
{
notification
.
error
({
...
...
src/pages/userCenter/userManage/UserManage.js
View file @
dfaf32e5
...
...
@@ -339,7 +339,7 @@ const UserManage = () => {
<
Form
form
=
{
form
}
>
<
Item
>
<
Radio
.
Group
defaultV
alue
=
{
selectValue
}
v
alue
=
{
selectValue
}
onChange
=
{
onTypeChange
}
>
<
Space
direction
=
"vertical"
>
...
...
@@ -763,19 +763,21 @@ const UserManage = () => {
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
setSelctValue
(
res
.
data
);
console
.
log
(
selectValue
);
console
.
log
(
res
.
data
);
}
});
};
const
onTypeChange
=
value
=>
{
console
.
log
(
value
);
setSelctValue
(
value
);
setSelctValue
(
value
.
target
.
value
);
};
const
authUser
=
record
=>
{
const
authUser
=
(
record
)
=>
{
setCurrentUser
(
record
);
AddUserAuthSetting
({
userId
:
currentUser
.
userID
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
console
.
log
(
selectValue
)
AddUserAuthSetting
({
userId
:
record
.
userID
,
userLevel
:
selectValue
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
message
.
info
(
'提交成功'
);
}
});
...
...
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