Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
8665ab2e
Commit
8665ab2e
authored
Sep 23, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复权限问题
parent
1072f1b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
index.jsx
src/pages/systemManage/Account/UserInfo/index.jsx
+2
-2
index.jsx
...temManage/Account/components/ResetPasswordModal/index.jsx
+1
-1
index.jsx
src/pages/systemManage/Role/RoleInfo/index.jsx
+2
-2
No files found.
src/pages/systemManage/Account/UserInfo/index.jsx
View file @
8665ab2e
...
@@ -218,12 +218,12 @@ const AddUser = props => {
...
@@ -218,12 +218,12 @@ const AddUser = props => {
<
Form
className=
{
style
[
'
user-info--form
'
]
}
{
...
formLayout
}
>
<
Form
className=
{
style
[
'
user-info--form
'
]
}
{
...
formLayout
}
>
<
Form
.
Item
label=
"用户名"
extra=
"限35字符以内,限英文/数字/“@”“ .”"
>
<
Form
.
Item
label=
"用户名"
extra=
"限35字符以内,限英文/数字/“@”“ .”"
>
{
getFieldDecorator
(
'
account
'
,
rulesHandler
(
'
account
'
))(
{
getFieldDecorator
(
'
account
'
,
rulesHandler
(
'
account
'
))(
<
Input
disabled=
{
!!
id
}
placeholder=
"请输入用户名"
maxLength=
{
3
5
}
/>,
<
Input
disabled=
{
!!
id
}
placeholder=
"请输入用户名"
maxLength=
{
3
2
}
/>,
)
}
)
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"姓名"
extra=
"限10字符以内"
>
<
Form
.
Item
label=
"姓名"
extra=
"限10字符以内"
>
{
getFieldDecorator
(
'
name
'
,
rulesHandler
(
'
name
'
))(
{
getFieldDecorator
(
'
name
'
,
rulesHandler
(
'
name
'
))(
<
Input
placeholder=
"请输入用户姓名"
/>,
<
Input
maxLength=
{
10
}
placeholder=
"请输入用户姓名"
/>,
)
}
)
}
</
Form
.
Item
>
</
Form
.
Item
>
{
id
?
(
{
id
?
(
...
...
src/pages/systemManage/Account/components/ResetPasswordModal/index.jsx
View file @
8665ab2e
...
@@ -11,7 +11,7 @@ const FormComponent = props => {
...
@@ -11,7 +11,7 @@ const FormComponent = props => {
const
[
confirmInputType
,
setConfirmInputType
]
=
useState
(
'
text
'
);
const
[
confirmInputType
,
setConfirmInputType
]
=
useState
(
'
text
'
);
const
handlepassword
=
(
rule
,
value
,
callback
)
=>
{
const
handlepassword
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
&&
value
!==
getFieldValue
(
'
p
assword
'
))
{
if
(
value
&&
value
!==
getFieldValue
(
'
newP
assword
'
))
{
callback
(
'
两次输入不一致!
'
);
callback
(
'
两次输入不一致!
'
);
}
}
// Note: 必须总是返回一个 callback,否则 validateFieldsAndScroll 无法响应
// Note: 必须总是返回一个 callback,否则 validateFieldsAndScroll 无法响应
...
...
src/pages/systemManage/Role/RoleInfo/index.jsx
View file @
8665ab2e
...
@@ -201,9 +201,9 @@ const RoleInfo = props => {
...
@@ -201,9 +201,9 @@ const RoleInfo = props => {
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"角色描述"
>
<
Form
.
Item
label=
"角色描述"
>
{
readyonly
{
readyonly
?
detailInfo
.
description
?
detailInfo
.
description
||
'
-
'
:
getFieldDecorator
(
'
description
'
,
rulesHandler
(
'
description
'
))(
:
getFieldDecorator
(
'
description
'
,
rulesHandler
(
'
description
'
))(
<
TextArea
placeholder=
"30个字以内"
></
TextArea
>,
<
TextArea
maxLength=
{
30
}
placeholder=
"30个字以内"
></
TextArea
>,
)
}
)
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"权限"
>
<
Form
.
Item
label=
"权限"
>
...
...
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