Commit 73bf70cc authored by 张子雨's avatar 张子雨

feat: 合同样式修改

parent aab1b6eb
......@@ -3,6 +3,7 @@ import ProTable from '@ant-design/pro-table';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { notification, Button, Modal, Image, message } from 'antd';
import { query } from './services';
import style from './style.less';
const ContractView = () => {
const [visible, setVisible] = useState(false);
......@@ -74,6 +75,7 @@ const ContractView = () => {
];
return (
<PageHeaderWrapper>
{!visible && (
<ProTable
search={{
collapsed: false,
......@@ -88,9 +90,15 @@ const ContractView = () => {
scroll={{ x: '100%', y: 400 }}
pagination={false}
/>
<Modal visible={visible} width="1000px" onCancel={() => setVisible(false)}>
)}
{visible && (
<div className={style.contract}>
<iframe src={url} height="500" width="95%" title="合同"></iframe>
</Modal>
<Button type="primary" onClick={() => setVisible(false)}>
取消
</Button>
</div>
)}
</PageHeaderWrapper>
);
};
......
.contract {
text-align: center;
}
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