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

debug

parent e4fa0446
Pipeline #16602 passed with stages
in 1 minute and 7 seconds
...@@ -41,25 +41,29 @@ const Receive = (props) => { ...@@ -41,25 +41,29 @@ const Receive = (props) => {
console.log(defaultV) console.log(defaultV)
return ( return (
<Document title="内部邮局"> <Document title="请假审批">
<WingBlank> <WingBlank>
<WhiteSpace/> <WhiteSpace/>
<form> <form>
<List> <List>
<InputItem disabled={true} extra={defaultV.title && defaultV.title}>标题</InputItem> <InputItem disabled={true} extra={defaultV.title && defaultV.title}>标题</InputItem>
<InputItem disabled={true} extra={defaultV.dispatchName}>发送</InputItem> <InputItem disabled={true} extra={defaultV.displayName}>请假</InputItem>
<InputItem disabled={true} extra={defaultV.startTime && moment(defaultV.startTime).format("YYYY-MM-DD HH:mm:ss")}>请假开始时间</InputItem> <InputItem disabled={true} extra={defaultV.startTime && moment(defaultV.startTime).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 disabled={true} extra={defaultV.entTime && moment(defaultV.entTime).format("YYYY-MM-DD HH:mm:ss")}>请假结束时间</InputItem>
{defaultV.status > 1 ? <InputItem disabled={true} extra={['审核中', '审核成功', '审核失败'][defaultV.status - 1]}>办理意见</InputItem> : (
<Picker data={[{label: '审核通过', value: 2}, {label: '审核失败', value: 3}]} cols={1} {...getFieldProps('status')}>
<List.Item arrow="horizontal">办理意见</List.Item>
</Picker>
)}
{/*<InputItem extra={'1111'}>参会人员</InputItem>*/}
<Picker data={[{label: '审核通过', value: 2}, {label: '审核失败', value: 3}]} cols={1} {...getFieldProps('status')}>
<List.Item arrow="horizontal">办理意见</List.Item>
</Picker>
</List> </List>
</form> </form>
<div className="event-footer"> {defaultV.status === 1 && (
<div className="event-footer-button" onClick={onSubmit}>提交</div> <div className="event-footer">
</div> <div className="event-footer-button" onClick={onSubmit}>提交</div>
</div>
)}
</WingBlank> </WingBlank>
</Document> </Document>
); );
......
...@@ -34,7 +34,7 @@ const Send = (props) => { ...@@ -34,7 +34,7 @@ const Send = (props) => {
const [sP, setSP] = useState({}); const [sP, setSP] = useState({});
const [personVisible, setPersonVisible] = useState(false); const [personVisible, setPersonVisible] = useState(false);
return ( return (
<Document title="内部邮局"> <Document title="请假申请">
<WingBlank> <WingBlank>
<PeopleInfo <PeopleInfo
visible={personVisible} visible={personVisible}
...@@ -58,7 +58,7 @@ const Send = (props) => { ...@@ -58,7 +58,7 @@ const Send = (props) => {
<div className="meet-select-btn" onClick={() => setPersonVisible(true)}>选择审核人员</div> <div className="meet-select-btn" onClick={() => setPersonVisible(true)}>选择审核人员</div>
<div>{sP.name}</div> <div>{sP.name}</div>
</div> </div>
}>参会人员</List.Item> }>审核人员</List.Item>
{/*<InputItem {...getFieldProps('gzdh')}>工作电话</InputItem>*/} {/*<InputItem {...getFieldProps('gzdh')}>工作电话</InputItem>*/}
</List> </List>
</form> </form>
......
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