Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
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
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
7b462c47
Commit
7b462c47
authored
Aug 04, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
7fc0f255
Pipeline
#16676
passed with stages
in 1 minute and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
PeopleInfo.jsx
src/pages/Test/PeopleInfo.jsx
+1
-1
Send.jsx
src/pages/Test/Send.jsx
+17
-4
index.less
src/pages/Work/components/index.less
+1
-0
No files found.
src/pages/Test/PeopleInfo.jsx
View file @
7b462c47
...
...
@@ -33,7 +33,7 @@ const Send = (props) => {
{
item
.
userList
&&
item
.
userList
.
length
>
0
&&
(
<
List
key=
{
item
.
name
}
>
{
item
.
userList
.
map
((
child
)
=>
(
<
RadioItem
key=
{
child
.
uid
}
checked=
{
checked
.
value
===
child
.
uid
}
onChange=
{
(
val
)
=>
checkChange
(
child
.
uid
,
child
.
n
ame
)
}
>
<
RadioItem
key=
{
child
.
uid
}
checked=
{
checked
.
value
===
child
.
uid
}
onChange=
{
(
val
)
=>
checkChange
(
child
.
uid
,
child
.
displayN
ame
)
}
>
{
child
.
displayName
}
</
RadioItem
>
))
}
...
...
src/pages/Test/Send.jsx
View file @
7b462c47
...
...
@@ -35,23 +35,36 @@ const Send = (props) => {
};
const
[
sP
,
setSP
]
=
useState
({});
const
[
sPU
,
setSPU
]
=
useState
({})
const
[
sType
,
setSType
]
=
useState
();
const
[
personVisible
,
setPersonVisible
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
peopleSelect
=
(
type
)
=>
{
setSType
(
type
);
setPersonVisible
(
true
)
}
return
(
<
Document
title=
"请假申请"
>
<
WingBlank
>
<
PeopleInfo
visible=
{
personVisible
}
onClose=
{
setPersonVisible
}
peopleData=
{
s
P
}
onSelect=
{
s
etSP
}
peopleData=
{
s
Type
===
'toUid'
?
sP
:
sPU
}
onSelect=
{
s
Type
===
'toUid'
?
setSP
:
setSPU
}
/>
<
WhiteSpace
/>
<
form
>
<
List
>
<
InputItem
{
...
getFieldProps
('
title
')}
>
标题
</
InputItem
>
<
InputItem
value=
{
'cgcPcPoo'
}
>
发送人
</
InputItem
>
{
/*<InputItem value={'cgcPcPoo'}>发送人</InputItem>*/
}
<
List
.
Item
className=
"auto-flex"
extra=
{
<
div
className=
"pos-aline"
>
<
div
className=
"meet-select-btn"
onClick=
{
()
=>
peopleSelect
(
'uid'
)
}
>
选择发送人
</
div
>
<
div
>
{
sPU
.
name
}
</
div
>
</
div
>
}
>
发送人
</
List
.
Item
>
<
DatePicker
mode=
"date"
className=
"send-date-style"
{
...
getFieldProps
('
startTime
')}
>
<
List
.
Item
arrow=
"horizontal"
>
请假开始时间
</
List
.
Item
>
</
DatePicker
>
...
...
@@ -60,7 +73,7 @@ const Send = (props) => {
</
DatePicker
>
<
List
.
Item
className=
"auto-flex"
extra=
{
<
div
className=
"pos-aline"
>
<
div
className=
"meet-select-btn"
onClick=
{
()
=>
setPersonVisible
(
true
)
}
>
选择审核人员
</
div
>
<
div
className=
"meet-select-btn"
onClick=
{
()
=>
peopleSelect
(
'toUid'
)
}
>
选择审核人员
</
div
>
<
div
>
{
sP
.
name
}
</
div
>
</
div
>
}
>
审核人员
</
List
.
Item
>
...
...
src/pages/Work/components/index.less
View file @
7b462c47
...
...
@@ -34,6 +34,7 @@
font-size: 14px !important;
background: rgba(239, 154, 54, 1);
color: #ffffff;
margin-right: 40px;
}
.meet-select-btn:active{
background: rgba(239, 154, 54, 0.8);
...
...
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