提交 fd7db942 authored 作者: 钟是志's avatar 钟是志

流程图地址 增加token

上级 ac50ca98
...@@ -4,57 +4,47 @@ import classNames from 'classnames/bind'; ...@@ -4,57 +4,47 @@ import classNames from 'classnames/bind';
import PortalFlowExamineModalImage from './Image'; import PortalFlowExamineModalImage from './Image';
import { connect } from 'dva'; import { connect } from 'dva';
import { queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfig'; import { queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getToken } from '@/webPublic/one_stop_public/utils/token';
const names = classNames.bind(require('./style.less')); const names = classNames.bind(require('./style.less'));
const Body = ({ const Body = ({ className, ...props }) => <div className={names('body', className)} {...props} />;
className,
...props
}) => <div className={names('body', className)} {...props} />;
@connect() @connect()
export default class PortalFlowExamineModalContent extends React.Component { export default class PortalFlowExamineModalContent extends React.Component {
constructor() { constructor() {
super(); super();
this.state = { this.state = {
data: {}, // 事务所有数据 data: {}, // 事务所有数据
arr: [], // 事务流程 arr: [], // 事务流程
}; };
} }
render() { render() {
let { let { id, affairId, code } = this.props;
id, let url = `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&token=${getToken()}`;
affairId, if(affairId){
code, url = url + `&id=${affairId}`;
} = this.props; }
return ( return (
<Row className={names('warp')}> <Row className={names('warp')}>
<Col span={24}> <Col span={24}>
<Body> <Body>
{id % 2 === 1 ? ( {id % 2 === 1 ? (
<PortalFlowExamineModalImage <PortalFlowExamineModalImage
appid={id} appid={id}
code={code} code={code}
src={ src={url}
!!affairId />
? `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&id=${affairId}` ) : (
: `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}` <PortalFlowExamineModalImage
} appid={id}
code={code}
src={url}
/> />
) : ( )}
<PortalFlowExamineModalImage </Body>
appid={id} </Col>
code={code} </Row>
src={ );
!!affairId }
? `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&id=${affairId}`
: `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}`
}
/>
)}
</Body>
</Col>
</Row>
);
}
} }
...@@ -6,33 +6,32 @@ import PortalFlowExamineModalContent from './Content'; ...@@ -6,33 +6,32 @@ import PortalFlowExamineModalContent from './Content';
const names = classNames.bind(require('./style.less')); const names = classNames.bind(require('./style.less'));
export default class PortalFlowExamineModal extends React.Component { export default class PortalFlowExamineModal extends React.Component {
state = { visible: false }; state = { visible: false };
showModal = () => { showModal = () => {
this.setState({ visible: true }); this.setState({ visible: true });
}; };
handleCancel = () => { handleCancel = () => {
this.setState({ visible: false }); this.setState({ visible: false });
}; };
render() { render() {
const { visible } = this.state; const { visible } = this.state;
const { isShow, id, affairId } = this.props; const { isShow, id, affairId } = this.props;
const code = this.props?.code ? this.props?.code : ''; const code = this.props?.code ? this.props?.code : '';
// console.log(this.props) // console.log(this.props)
return ( return (
<Modal <Modal
title="事务流程" title="事务流程"
visible={visible} visible={visible}
onCancel={this.handleCancel} onCancel={this.handleCancel}
footer={null} footer={null}
width={1300} width={1300}
wrapClassName={names('modal-warp')} wrapClassName={names('modal-warp')}
destroyOnClose destroyOnClose>
> <PortalFlowExamineModalContent affairId={affairId} id={id} code={code} isShow={isShow} />
<PortalFlowExamineModalContent affairId={affairId} id={id} code={code} isShow={isShow} /> </Modal>
</Modal> );
); }
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论