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
6c76bf43
Commit
6c76bf43
authored
Apr 23, 2021
by
mayongxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色选择组件支持传入自定义组件
parent
df6e1b18
Pipeline
#26475
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
EditModal.jsx
...nter/messageManage/projectManage/components/EditModal.jsx
+2
-2
VisibleRoleModal.jsx
...projectManage/components/RolseSelect/VisibleRoleModal.jsx
+16
-4
No files found.
src/pages/platformCenter/messageManage/projectManage/components/EditModal.jsx
View file @
6c76bf43
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
import
SiteModal
from
'@/components/Modal/SiteModa'
;
import
{
Form
,
Input
,
notification
,
Select
,
Checkbox
,
message
}
from
'antd'
import
{
Form
,
Input
,
notification
,
Select
,
Checkbox
,
message
,
Button
}
from
'antd'
import
BaseForm
from
'@/components/BaseForm/index'
;
import
{
Switch
}
from
'react-router'
;
import
{
iteratee
}
from
'lodash'
;
...
...
@@ -267,7 +267,7 @@ const EditModal = props => {
name=
"to_person"
>
<
VisibleRoleModal
onSubmit=
{
onPushSubmit
}
/>
<
VisibleRoleModal
onSubmit=
{
onPushSubmit
}
title=
{
"推送人员"
}
operate=
{
<
Button
>
adfasdf
</
Button
>
}
/>
</
Item
>
<
Item
label=
"定时计划"
...
...
src/pages/platformCenter/messageManage/projectManage/components/RolseSelect/VisibleRoleModal.jsx
View file @
6c76bf43
...
...
@@ -24,7 +24,7 @@ const VisibleRoleModal = props => {
const
[
dataTree
,
setDataTree
]
=
useState
([])
const
[
dataLeafs
,
setDataLeafs
]
=
useState
([])
const
[
selectValues
,
setSelectValues
]
=
useState
([])
const
{
onSubmit
}
=
props
const
{
onSubmit
,
title
,
operate
}
=
props
const
GetRoleGroupList
=
()
=>
{
...
...
@@ -87,12 +87,24 @@ const VisibleRoleModal = props => {
return
(
<
div
className=
{
styles
.
role_container
}
>
<
Input
disabled=
{
true
}
value=
{
selectRole
}
/>
<
div
className=
{
styles
.
select_btn
}
onClick=
{
handleClick
}
>
推送人员
</
div
>
{
operate
?
(
<
div
onClick=
{
handleClick
}
>
{
operate
}
</
div
>
)
:
(
<
div
style=
{
{
display
:
"flex"
,
flexDirection
:
"row"
,
width
:
"100%"
}
}
>
<
Input
disabled=
{
true
}
value=
{
selectRole
}
/>
<
div
className=
{
styles
.
select_btn
}
onClick=
{
handleClick
}
>
{
title
?
title
:
"选择角色"
}
</
div
>
</
div
>
)
}
<
SiteModal
{
...
props
}
title=
"选择推送人员"
title=
{
title
?
`选择${title}`
:
关联角色
}
bodyStyle=
{
{
width
:
'100%'
,
minHeight
:
'100px'
}
}
style=
{
{
top
:
200
,
borderRadius
:
'20px'
}
}
width=
"800px"
...
...
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