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

发起页面修改

上级 e9adf8ab
...@@ -32,24 +32,6 @@ export default class AffairPage extends React.Component { ...@@ -32,24 +32,6 @@ export default class AffairPage extends React.Component {
message.error('您的数据未同步,请联系管理员!'); message.error('您的数据未同步,请联系管理员!');
return false; return false;
} }
// window.addEventListener(
// 'message',
// (event) => {
// // 和Iframe页进行通迅
// if (event.data === 'returnList') {
// this.returnList(true);
// }
// if (event && event.data && event.data.indexOf && event.data.indexOf('iframeHeight') > -1) {
// let height = Number(event.data.split('-')[1]);
// const iframe = document.getElementById('applyIframeId');
// if (iframe) {
// iframe.height = height;
// }
// }
// },
// false,
// );
return true; return true;
} }
...@@ -89,26 +71,8 @@ export default class AffairPage extends React.Component { ...@@ -89,26 +71,8 @@ export default class AffairPage extends React.Component {
{...this.props} {...this.props}
id={workId} id={workId}
returnList={this.returnList} returnList={this.returnList}
init={encodeURIComponent(JSON.stringify(init))} init={init}
/> />
{/* <iframe
src={iframeUrl}
frameBorder={0}
id="applyIframeId"
name="applyIframe"
marginWidth="0"
marginHeight="0"
allowtransparency="yes"
seamless
scrolling={'auto'}
style={{
width: '100%',
minHeight: '800px',
overflowY: 'hidden',
backgroundColor: '#fff',
}}
/>*/}
: null
</div> </div>
</PageHeaderWrapper> </PageHeaderWrapper>
); );
......
...@@ -253,7 +253,6 @@ class SponsorForm extends Component { ...@@ -253,7 +253,6 @@ class SponsorForm extends Component {
computedMatch: this.props?.computedMatch, computedMatch: this.props?.computedMatch,
route: this.props?.route, route: this.props?.route,
}; };
console.log(routerState);
return ( return (
<> <>
{isLoading ? ( {isLoading ? (
......
...@@ -49,7 +49,7 @@ export default class IframeForApply extends React.Component { ...@@ -49,7 +49,7 @@ export default class IframeForApply extends React.Component {
} = props; } = props;
this.state = { this.state = {
id, // 传入id id, // 传入id
init: init && isJSON(init) ? JSON.parse(decodeURIComponent(init)) : undefined, init: init || undefined,
value: '', // 紧急度选择 value: '', // 紧急度选择
btnList: [], // 紧急度按钮返回数据 btnList: [], // 紧急度按钮返回数据
noNeedApply, noNeedApply,
...@@ -97,7 +97,6 @@ export default class IframeForApply extends React.Component { ...@@ -97,7 +97,6 @@ export default class IframeForApply extends React.Component {
noNeedTitle, noNeedTitle,
} = this.state; } = this.state;
const { modileHome, returnList } = this.props; const { modileHome, returnList } = this.props;
console.log(this.props);
return ( return (
<div <div
className={names('warp IframeDiy')} className={names('warp IframeDiy')}
...@@ -126,16 +125,14 @@ export default class IframeForApply extends React.Component { ...@@ -126,16 +125,14 @@ export default class IframeForApply extends React.Component {
radioValue={value} radioValue={value}
noNeedApplyButton={noNeedApply} noNeedApplyButton={noNeedApply}
init={init} // 表单的初始化数据 用于发起时传入默认值 init={init} // 表单的初始化数据 用于发起时传入默认值
// location={this.props.location}
history={{ history={{
...this.props.history, ...this.props.history,
location: { location: {
...this.props.location, ...this.props.history.location,
state: { state: {
id, id,
noNeedCaoGao: true, noNeedCaoGao: true,
app: {}, app: {},
...this.props.location?.state,
}, },
}, },
}} }}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论