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) => {
{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)}>
<RadioItem key={child.uid} checked={checked.value === child.uid} onChange={(val) => checkChange(child.uid, child.displayName)}>
{child.displayName}
</RadioItem>
))}
......
......@@ -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={sP}
onSelect={setSP}
peopleData={sType === 'toUid' ? sP : sPU}
onSelect={sType === '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>
......
......@@ -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);
......
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