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

流程图地址 增加token

上级 ac50ca98
......@@ -4,12 +4,10 @@ import classNames from 'classnames/bind';
import PortalFlowExamineModalImage from './Image';
import { connect } from 'dva';
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 Body = ({
className,
...props
}) => <div className={names('body', className)} {...props} />;
const Body = ({ className, ...props }) => <div className={names('body', className)} {...props} />;
@connect()
export default class PortalFlowExamineModalContent extends React.Component {
......@@ -22,11 +20,11 @@ export default class PortalFlowExamineModalContent extends React.Component {
}
render() {
let {
id,
affairId,
code,
} = this.props;
let { id, affairId, code } = this.props;
let url = `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&token=${getToken()}`;
if(affairId){
url = url + `&id=${affairId}`;
}
return (
<Row className={names('warp')}>
<Col span={24}>
......@@ -35,21 +33,13 @@ export default class PortalFlowExamineModalContent extends React.Component {
<PortalFlowExamineModalImage
appid={id}
code={code}
src={
!!affairId
? `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&id=${affairId}`
: `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}`
}
src={url}
/>
) : (
<PortalFlowExamineModalImage
appid={id}
code={code}
src={
!!affairId
? `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}&id=${affairId}`
: `${queryApiActionPath()}/UnifiedAppFormApi/getProcessImg?appId=${id}`
}
src={url}
/>
)}
</Body>
......
......@@ -29,8 +29,7 @@ export default class PortalFlowExamineModal extends React.Component {
footer={null}
width={1300}
wrapClassName={names('modal-warp')}
destroyOnClose
>
destroyOnClose>
<PortalFlowExamineModalContent affairId={affairId} id={id} code={code} isShow={isShow} />
</Modal>
);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论