查看详情增加关闭按钮
This commit is contained in:
@ -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}>
|
||||||
|
Reference in New Issue
Block a user