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

30429 系统通用功能--数据下钻/打印弹窗--均打开新页面,不要弹窗,太小了

上级 6354e6e4
...@@ -147,6 +147,9 @@ const resBinaryApiList = [ ...@@ -147,6 +147,9 @@ const resBinaryApiList = [
{ {
api: 'UnifiedAppApi/getDetail', api: 'UnifiedAppApi/getDetail',
}, },
{
api: 'DataColumnApi/getHeaderList',
},
{ {
api: 'UnifiedServiceApi/getDetail', api: 'UnifiedServiceApi/getDetail',
}, },
......
...@@ -1456,6 +1456,7 @@ class FormList extends React.Component { ...@@ -1456,6 +1456,7 @@ class FormList extends React.Component {
onSelectRow={this.handleSelectRows} onSelectRow={this.handleSelectRows}
onChange={this.handleStandardTableChange} onChange={this.handleStandardTableChange}
loading={loading} loading={loading}
getCheckboxProps={this.props.getCheckboxProps || undefined}
/> />
)} )}
</div> </div>
......
import React, { } from 'react'; import React from 'react';
import { Button } from 'antd';
import { getModal } from '@/webPublic/one_stop_public/utils/utils'; import { getModal } from '@/webPublic/one_stop_public/utils/utils';
import styles from './style.less'
const Modal = getModal(); const Modal = getModal();
export default class FormModal extends React.Component { export default class FormModal extends React.Component {
render() { render() {
const showFullScreen = () => {
let dom = document.getElementById('smartFormModal');
dom.requestFullscreen();
console.log(dom);
};
return ( return (
<Modal <Modal
bodyStyle={{ bodyStyle={{
...@@ -19,7 +27,14 @@ export default class FormModal extends React.Component { ...@@ -19,7 +27,14 @@ export default class FormModal extends React.Component {
visible={this.props.visible} visible={this.props.visible}
footer={null} footer={null}
onCancel={this.props.handleCancel}> onCancel={this.props.handleCancel}>
{this.props.showFullScreen && (
<Button type={'primary'} onClick={showFullScreen}>
全屏查看
</Button>
)}
<div id={'smartFormModal'} className={styles.fullScreen}>
{this.props.children} {this.props.children}
</div>
</Modal> </Modal>
); );
} }
......
.fullScreen {
&:-webkit-full-screen {
width: 100%;
height: 100%;
padding: 100px;
background-color: #fff;
}
//&:div[data-page-formkey]{
// overflow: hidden;
//}
}
:global { :global {
// table{ // table{
// border-collapse:collapse; // border-collapse:collapse;
// } // }
#web_table .ant-form-item { #web_table .ant-form-item {
margin-bottom: 2.5px; margin-bottom: 2.5px;
margin-top: 2.5px; margin-top: 2.5px;
...@@ -290,7 +305,8 @@ ...@@ -290,7 +305,8 @@
min-height: 50px; min-height: 50px;
} }
} }
.bigTitle{
.bigTitle {
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
margin-bottom: 20px; margin-bottom: 20px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论