index.js 902 Bytes
Newer Older
1 2 3 4 5 6 7 8
import React from 'react';
import { Modal } from 'antd';
import classNames from 'classnames/bind';
import PortalFlowExamineModalContent from './Content';

const names = classNames.bind(require('./style.less'));

export default class PortalFlowExamineModal extends React.Component {
9
	state = { visible: false };
10

11 12 13
	showModal = () => {
		this.setState({ visible: true });
	};
14

15 16 17
	handleCancel = () => {
		this.setState({ visible: false });
	};
18

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
	render() {
		const { visible } = this.state;
		const { isShow, id, affairId } = this.props;
		const code = this.props?.code ? this.props?.code : '';
		return (
			<Modal
				title="事务流程"
				visible={visible}
				onCancel={this.handleCancel}
				footer={null}
				width={1300}
				wrapClassName={names('modal-warp')}
				destroyOnClose>
				<PortalFlowExamineModalContent affairId={affairId} id={id} code={code} isShow={isShow} />
			</Modal>
		);
	}
36
}