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

30722 关于自由活动申报限制选团组织范围说明

上级 e75e445d
...@@ -66,29 +66,14 @@ export default class Detail extends Component { ...@@ -66,29 +66,14 @@ export default class Detail extends Component {
}); });
}; };
render() { getButtons = () => {
const { from } = this.props; const { showAll } = this.state;
const { id, showAll, code } = this.state; const { hiddenButton } = this.props;
const url = config.onestopPC.split('/#/'); if(hiddenButton){
let showPrint = this.props.location?.state?.showPrint; return null;
if (getIsGui_Jian() && !showPrint) {
// 27590 寝室调整管理-寝室调整申请,详情的打印预览按钮不见了210301080119-122617
// 贵建把打印预览显示出来
showPrint = true;
}
let iframeUrl = `${url[0]}/#/IframeForDetail?id=${id}&token=${getToken()}`;
if (showPrint) {
iframeUrl = iframeUrl + '&showPrint=true';
} }
if (from === 'onestopApp2.0') {
iframeUrl =
config.gateWayPort +
`/portal/#/showAuditIframe?id=${id}&code=${code}&hasSingle=false&token=${getToken()}&isPrint=false`;
}
// iframeUrl = `http://localhost:8000/onestop/IframeForDetail?id=${id}&token=${getToken()}`;
// console.log(showPrint);
return ( return (
<PageHeaderWrapper title=""> <>
<Shell> <Shell>
<div <div
style={{ style={{
...@@ -114,6 +99,36 @@ export default class Detail extends Component { ...@@ -114,6 +99,36 @@ export default class Detail extends Component {
/> />
</div> </div>
</Shell> </Shell>
</>
);
}
render() {
const { from, hiddenButton } = this.props;
const { id, showAll, code } = this.state;
const url = config.onestopPC.split('/#/');
let showPrint = this.props.location?.state?.showPrint;
if (getIsGui_Jian() && !showPrint) {
// 27590 寝室调整管理-寝室调整申请,详情的打印预览按钮不见了210301080119-122617
// 贵建把打印预览显示出来
showPrint = true;
}
let iframeUrl = `${url[0]}/#/IframeForDetail?id=${id}&token=${getToken()}`;
if (showPrint) {
iframeUrl = iframeUrl + '&showPrint=true';
}
if (from === 'onestopApp2.0') {
iframeUrl =
config.gateWayPort +
`/portal/#/showAuditIframe?id=${id}&code=${code}&hasSingle=false&token=${getToken()}&isPrint=false`;
}
// iframeUrl = `http://localhost:8000/onestop/IframeForDetail?id=${id}&token=${getToken()}`;
// console.log(showPrint);
return (
<PageHeaderWrapper title="">
{
this.getButtons()
}
<Shell> <Shell>
{from === 'onestopApp2.0' ? ( {from === 'onestopApp2.0' ? (
<iframe <iframe
...@@ -139,32 +154,9 @@ export default class Detail extends Component { ...@@ -139,32 +154,9 @@ export default class Detail extends Component {
</div> </div>
)} )}
</Shell> </Shell>
<Shell> {
<div this.getButtons()
style={{ }
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
router.goBack();
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
type={'primary'}
// className='primaryBlue'
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
</PageHeaderWrapper> </PageHeaderWrapper>
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论