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
e4fa0446
Commit
e4fa0446
authored
Jul 31, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
2a266d5d
Pipeline
#16571
passed with stages
in 1 minute and 1 second
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
PeopleInfo.jsx
src/pages/Test/PeopleInfo.jsx
+2
-2
Receive.jsx
src/pages/Test/Receive.jsx
+4
-3
index.less
src/pages/Test/index.less
+3
-0
No files found.
src/pages/Test/PeopleInfo.jsx
View file @
e4fa0446
...
...
@@ -28,13 +28,13 @@ const Send = (props) => {
const
getProps
=
data
=>
(
<
Accordion
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
(
<
Accordion
.
Panel
header=
{
item
.
name
}
key=
{
index
}
>
<
Accordion
.
Panel
className=
"pd-10"
header=
{
item
.
name
}
key=
{
index
}
>
{
item
.
subList
&&
item
.
subList
.
length
>
0
&&
getProps
(
item
.
subList
)
}
{
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
.
name
)
}
>
{
child
.
n
ame
}
{
child
.
displayN
ame
}
</
RadioItem
>
))
}
</
List
>
...
...
src/pages/Test/Receive.jsx
View file @
e4fa0446
...
...
@@ -17,7 +17,7 @@ const Receive = (props) => {
data
:
{},
withCredentials
:
false
,
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
.
data
)
setDefaultV
(
res
.
data
.
data
.
result
)
})
},
[]);
...
...
@@ -38,6 +38,7 @@ const Receive = (props) => {
}
});
};
console
.
log
(
defaultV
)
return
(
<
Document
title=
"内部邮局"
>
...
...
@@ -46,9 +47,9 @@ const Receive = (props) => {
<
form
>
<
List
>
<
InputItem
disabled=
{
true
}
extra=
{
defaultV
.
title
&&
defaultV
.
title
}
>
标题
</
InputItem
>
<
InputItem
disabled=
{
true
}
extra=
{
'1111'
}
>
发送人
</
InputItem
>
<
InputItem
disabled=
{
true
}
extra=
{
defaultV
.
dispatchName
}
>
发送人
</
InputItem
>
<
InputItem
disabled=
{
true
}
extra=
{
defaultV
.
startTime
&&
moment
(
defaultV
.
startTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
>
请假开始时间
</
InputItem
>
<
InputItem
disabled=
{
true
}
extra=
{
defaultV
.
en
dTime
&&
moment
(
defaultV
.
end
Time
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
>
请假结束时间
</
InputItem
>
<
InputItem
disabled=
{
true
}
extra=
{
defaultV
.
en
tTime
&&
moment
(
defaultV
.
ent
Time
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
>
请假结束时间
</
InputItem
>
{
/*<InputItem extra={'1111'}>参会人员</InputItem>*/
}
<
Picker
data=
{
[{
label
:
'审核通过'
,
value
:
2
},
{
label
:
'审核失败'
,
value
:
3
}]
}
cols=
{
1
}
{
...
getFieldProps
('
status
')}
>
...
...
src/pages/Test/index.less
View file @
e4fa0446
...
...
@@ -206,3 +206,6 @@
height: 400px;
overflow: auto;
}
.pd-10{
padding-left: 10px;
}
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