import React from 'react'; import { Modal, Button } from 'antd'; const DeleteModal = (props) => { const handleClose = () => { props.handleClose(); }; const handleOk = () => { props.handleClose(); }; const { addVisible ,statusType} = props; return ( <div> <Modal width={500} title='删除' visible={addVisible} onOk={handleOk} onCancel={handleClose} footer={null} > {(!statusType && <div style={{textAlign:'center',padding:'40px'}}>该单位被占用不支持删除!请先解除占用再执行此操作!</div>)|| (statusType && <div style={{textAlign:'center',padding:'40px'}}>确定要删除该单位信息吗?</div>) } <div style={{textAlign:'center',paddingTop:'40px'}}> <Button type='primary' style={{marginRight:'20px'}}>确定</Button> <Button onClick={handleClose}>取消</Button> </div> </Modal> </div> ) } export default DeleteModal;