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
09d30b28
Commit
09d30b28
authored
Sep 27, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 新增账户控制非pop商家不展示门店信息
parent
b80d0182
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
index.jsx
src/pages/systemManage/Account/UserInfo/index.jsx
+6
-3
No files found.
src/pages/systemManage/Account/UserInfo/index.jsx
View file @
09d30b28
...
@@ -9,7 +9,7 @@ import UUID from '@/utils/uuid';
...
@@ -9,7 +9,7 @@ import UUID from '@/utils/uuid';
import
style
from
'
./index.less
'
;
import
style
from
'
./index.less
'
;
const
A
ddUser
=
props
=>
{
const
A
ccountInfo
=
props
=>
{
const
{
getFieldDecorator
,
validateFields
,
getFieldValue
,
setFieldsValue
}
=
props
.
form
;
const
{
getFieldDecorator
,
validateFields
,
getFieldValue
,
setFieldsValue
}
=
props
.
form
;
const
{
id
}
=
props
.
location
.
query
;
const
{
id
}
=
props
.
location
.
query
;
const
[
title
,
setTitle
]
=
useState
(
'
新增用户
'
);
const
[
title
,
setTitle
]
=
useState
(
'
新增用户
'
);
...
@@ -24,6 +24,9 @@ const AddUser = props => {
...
@@ -24,6 +24,9 @@ const AddUser = props => {
const
rolePermissionsModalRef
=
useRef
();
const
rolePermissionsModalRef
=
useRef
();
const
popReg
=
/^pop_/g
;
const
isPop
=
popReg
.
test
(
userInfo
.
supplierCode
);
// 表单布局
// 表单布局
const
formLayout
=
{
const
formLayout
=
{
labelCol
:
{
span
:
4
},
labelCol
:
{
span
:
4
},
...
@@ -262,7 +265,7 @@ const AddUser = props => {
...
@@ -262,7 +265,7 @@ const AddUser = props => {
)
}
)
}
<
Form
.
Item
label=
"选择门店"
extra=
"仅限POP商家设置"
>
<
Form
.
Item
label=
"选择门店"
extra=
"仅限POP商家设置"
>
{
getFieldDecorator
(
'
organizationId
'
,
rulesHandler
(
'
organizationId
'
))(
{
getFieldDecorator
(
'
organizationId
'
,
rulesHandler
(
'
organizationId
'
))(
supplierList
.
length
?
(
isPop
&&
supplierList
.
length
?
(
<
Radio
.
Group
disabled=
{
!!
id
}
style=
{
{
width
:
'
100%
'
}
}
>
<
Radio
.
Group
disabled=
{
!!
id
}
style=
{
{
width
:
'
100%
'
}
}
>
{
selectSupplierCheckbox
()
}
{
selectSupplierCheckbox
()
}
</
Radio
.
Group
>
</
Radio
.
Group
>
...
@@ -297,4 +300,4 @@ const AddUser = props => {
...
@@ -297,4 +300,4 @@ const AddUser = props => {
);
);
};
};
export
default
Form
.
create
({})(
A
ddUser
);
export
default
Form
.
create
({})(
A
ccountInfo
);
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