Commit e4fa0446 authored by 熊成伟's avatar 熊成伟

debug

parent 2a266d5d
Pipeline #16571 passed with stages
in 1 minute and 1 second
......@@ -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.name}
{child.displayName}
</RadioItem>
))}
</List>
......
......@@ -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.endTime && moment(defaultV.endTime).format("YYYY-MM-DD HH:mm:ss")}>请假结束时间</InputItem>
<InputItem disabled={true} extra={defaultV.entTime && moment(defaultV.entTime).format("YYYY-MM-DD HH:mm:ss")}>请假结束时间</InputItem>
{/*<InputItem extra={'1111'}>参会人员</InputItem>*/}
<Picker data={[{label: '审核通过', value: 2}, {label: '审核失败', value: 3}]} cols={1} {...getFieldProps('status')}>
......
......@@ -206,3 +206,6 @@
height: 400px;
overflow: auto;
}
.pd-10{
padding-left: 10px;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment