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

feat: 合同样式修改

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