查看详情增加关闭按钮

This commit is contained in:
袁帅
2022-09-08 09:48:00 +08:00
parent 744978b25f
commit 430b579f7b

View File

@ -1,4 +1,4 @@
import { Spin, Modal, Descriptions, message } from 'antd'; import { Spin, Modal, Descriptions, message, Button } from 'antd';
// import type { ColumnsType } from 'antd/es/table'; // import type { ColumnsType } from 'antd/es/table';
import React, { useState, useImperativeHandle, forwardRef } from 'react'; import React, { useState, useImperativeHandle, forwardRef } from 'react';
import { getReservationInfo, getReportInfo } from './service'; import { getReservationInfo, getReportInfo } from './service';
@ -163,6 +163,13 @@ const columns: any = [
// } // }
// return result; // return result;
// } // }
const renderFooter = () => {
return (
<>
<Button onClick={onCancel}></Button>
</>
);
}
return (<Modal return (<Modal
destroyOnClose = {true} destroyOnClose = {true}
visible = {modalVisible} visible = {modalVisible}
@ -171,8 +178,8 @@ const columns: any = [
<span></span> <span></span>
<span style={{textAlign: "center",width: "100%",position: "absolute",left: 0}}>{reservationInfo?.projectName}</span> <span style={{textAlign: "center",width: "100%",position: "absolute",left: 0}}>{reservationInfo?.projectName}</span>
</div>} </div>}
footer={null} footer={renderFooter()}
width={1000} width={"60%"}
> >
<Spin spinning={initReservationInfo || initReportInfo}> <Spin spinning={initReservationInfo || initReportInfo}>