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

19711 流程发起页面支持url传表单参数

上级 c9768baf
...@@ -57,9 +57,10 @@ export default class AffairPage extends React.Component { ...@@ -57,9 +57,10 @@ export default class AffairPage extends React.Component {
return null; return null;
} }
const url = config.onestopPC.split("/#/"); const url = config.onestopPC.split("/#/");
let iframeUrl = `${url[0]}/#/IFrameForApply?id=${workId}&token=${getToken()}&init=${encodeURIComponent(JSON.stringify(init))}`; const params = `id=${workId}&token=${getToken()}&init=${encodeURIComponent(JSON.stringify(init))}`;
let iframeUrl = `${url[0]}/#/IFrameForApply?${params}`;
console.log(iframeUrl); console.log(iframeUrl);
// iframeUrl = `http://localhost:8000/onestop/IFrameForApply?id=${workId}&token=${getToken()}`; // iframeUrl = `http://localhost:8001/onestop/IFrameForApply?${params}`;
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
<div style={{ <div style={{
......
...@@ -21,7 +21,7 @@ import Shell from '@/baseComponent/Shell'; ...@@ -21,7 +21,7 @@ import Shell from '@/baseComponent/Shell';
import config from '@/config/config'; import config from '@/config/config';
export default function index(props){ export default function index(props){
const { state } = props.location.state; const { state = {} } = props.location;
if(state.justApply){ if(state.justApply){
return <JustApply {...props}/>; return <JustApply {...props}/>;
}else{ }else{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论