Commit 6bde94c1 authored by wangxuelai's avatar wangxuelai

Merge remote-tracking branch 'origin/bww-v1' into wxl-develop

parents 39e4164f d5db8874
......@@ -75,6 +75,7 @@ class LeaveDetailModal extends React.Component {
form: { getFieldDecorator, getFieldValue },
leaveSubmitLoading,
} = this.props;
const { status } = this.state;
return (
<Modal
visible={visible}
......@@ -126,8 +127,8 @@ class LeaveDetailModal extends React.Component {
)}
</FormItem>
<div className={pageStyle.btnList}>
<Button htmlType="submit" loading={leaveSubmitLoading} onClick={() => this.handleStatus(4)}>驳回申请</Button>
<Button htmlType="submit" loading={leaveSubmitLoading} onClick={() => this.handleStatus(3)} type="primary" style={{ marginLeft: 20 }}>通过申请</Button>
<Button htmlType="submit" loading={status === 4 ? leaveSubmitLoading : ''} onClick={() => this.handleStatus(4)}>驳回申请</Button>
<Button htmlType="submit" loading={status === 3 ? leaveSubmitLoading : ''} onClick={() => this.handleStatus(3)} type="primary" style={{ marginLeft: 20 }}>通过申请</Button>
</div>
</Form>
</div>
......
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