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

流程图地址 增加token

上级 ac50ca98
...@@ -4,12 +4,10 @@ import classNames from 'classnames/bind'; ...@@ -4,12 +4,10 @@ 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 {
...@@ -22,11 +20,11 @@ export default class PortalFlowExamineModalContent extends React.Component { ...@@ -22,11 +20,11 @@ export default class PortalFlowExamineModalContent extends React.Component {
} }
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}>
...@@ -35,21 +33,13 @@ export default class PortalFlowExamineModalContent extends React.Component { ...@@ -35,21 +33,13 @@ export default class PortalFlowExamineModalContent extends React.Component {
<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 <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}`
}
/> />
)} )}
</Body> </Body>
......
...@@ -29,8 +29,7 @@ export default class PortalFlowExamineModal extends React.Component { ...@@ -29,8 +29,7 @@ export default class PortalFlowExamineModal extends React.Component {
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论