Commit 7b462c47 authored by 熊成伟's avatar 熊成伟

debug

parent 7fc0f255
Pipeline #16676 passed with stages
in 1 minute and 2 seconds
...@@ -33,7 +33,7 @@ const Send = (props) => { ...@@ -33,7 +33,7 @@ const Send = (props) => {
{item.userList && item.userList.length > 0 && ( {item.userList && item.userList.length > 0 && (
<List key={item.name}> <List key={item.name}>
{item.userList.map((child) => ( {item.userList.map((child) => (
<RadioItem key={child.uid} checked={checked.value === child.uid} onChange={(val) => checkChange(child.uid, child.name)}> <RadioItem key={child.uid} checked={checked.value === child.uid} onChange={(val) => checkChange(child.uid, child.displayName)}>
{child.displayName} {child.displayName}
</RadioItem> </RadioItem>
))} ))}
......
...@@ -35,23 +35,36 @@ const Send = (props) => { ...@@ -35,23 +35,36 @@ const Send = (props) => {
}; };
const [sP, setSP] = useState({}); const [sP, setSP] = useState({});
const [sPU, setSPU] = useState({})
const [sType, setSType] = useState();
const [personVisible, setPersonVisible] = useState(false); const [personVisible, setPersonVisible] = useState(false);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const peopleSelect = (type) => {
setSType(type);
setPersonVisible(true)
}
return ( return (
<Document title="请假申请"> <Document title="请假申请">
<WingBlank> <WingBlank>
<PeopleInfo <PeopleInfo
visible={personVisible} visible={personVisible}
onClose={setPersonVisible} onClose={setPersonVisible}
peopleData={sP} peopleData={sType === 'toUid' ? sP : sPU}
onSelect={setSP} onSelect={sType === 'toUid' ? setSP : setSPU}
/> />
<WhiteSpace/> <WhiteSpace/>
<form> <form>
<List> <List>
<InputItem {...getFieldProps('title')}>标题</InputItem> <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')}> <DatePicker mode="date" className="send-date-style"{...getFieldProps('startTime')}>
<List.Item arrow="horizontal">请假开始时间</List.Item> <List.Item arrow="horizontal">请假开始时间</List.Item>
</DatePicker> </DatePicker>
...@@ -60,7 +73,7 @@ const Send = (props) => { ...@@ -60,7 +73,7 @@ const Send = (props) => {
</DatePicker> </DatePicker>
<List.Item className="auto-flex" extra={ <List.Item className="auto-flex" extra={
<div className="pos-aline"> <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>{sP.name}</div>
</div> </div>
}>审核人员</List.Item> }>审核人员</List.Item>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
font-size: 14px !important; font-size: 14px !important;
background: rgba(239, 154, 54, 1); background: rgba(239, 154, 54, 1);
color: #ffffff; color: #ffffff;
margin-right: 40px;
} }
.meet-select-btn:active{ .meet-select-btn:active{
background: rgba(239, 154, 54, 0.8); background: rgba(239, 154, 54, 0.8);
......
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