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

2073 开发需求1229

上级 19aa49d0
......@@ -67,41 +67,45 @@ export default class Detail extends Component {
};
getButtons = () => {
const { showAll } = this.state;
const { hiddenButton } = this.props;
if(hiddenButton){
return null;
}
return (
<>
<Shell>
<div
style={{
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
router.goBack();
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
className="defaultBlue"
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
</>
);
}
const { showAll } = this.state;
const { hiddenButton, fromCheckRecord } = this.props;
if (hiddenButton) {
return null;
}
return (
<>
<Shell>
<div
style={{
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
if (fromCheckRecord) {
window.keepAliveCheckRecord.showList();
} else {
router.goBack();
}
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
className="defaultBlue"
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
</>
);
};
render() {
const { from, hiddenButton } = this.props;
......@@ -126,9 +130,7 @@ export default class Detail extends Component {
// console.log(showPrint);
return (
<PageHeaderWrapper title="">
{
this.getButtons()
}
{this.getButtons()}
<Shell>
{from === 'onestopApp2.0' ? (
<iframe
......@@ -154,9 +156,7 @@ export default class Detail extends Component {
</div>
)}
</Shell>
{
this.getButtons()
}
{this.getButtons()}
</PageHeaderWrapper>
);
}
......
......@@ -6,6 +6,17 @@ import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import SelectPerson from '@/webPublic/FormInsertDiy/ExportComponent/SelectPerson/Index';
import Detail from '@/webPublic/FormInsertDiy/AffairPage/Detail';
const showDiv = () => {
document.getElementById('listZdyTable').style.position = 'static';
document.getElementById('listZdyTable').style.zIndex = 'auto';
};
const hideDiv = () => {
document.getElementById('listZdyTable').style.position = 'absolute';
document.getElementById('listZdyTable').style.zIndex = '-10';
};
export default function RenderForm({ get = 'web', isCg = 'yes', style, ...rest }) {
let content = rest?.postData?.unifiedServicePatternModel?.content;
if (isJSON(content)) {
......@@ -32,7 +43,7 @@ export default function RenderForm({ get = 'web', isCg = 'yes', style, ...rest }
showList: (props) => {
setShowPageType(0);
setPageProps({});
document.getElementById('listZdyTable').style.display = 'block';
showDiv();
},
showDetail: (p) => {
setPageProps({
......@@ -41,7 +52,7 @@ export default function RenderForm({ get = 'web', isCg = 'yes', style, ...rest }
});
setShowPageType(1);
console.log(p);
document.getElementById('listZdyTable').style.display = 'none';
hideDiv();
},
};
......@@ -68,7 +79,8 @@ export default function RenderForm({ get = 'web', isCg = 'yes', style, ...rest }
/>
<SelectPerson />
</div>
{showPageType === 1 && <Detail {...pageProps} />}
{showPageType === 1 && <Detail fromCheckRecord={true}
{...pageProps} />}
</>
);
}
......
......@@ -18,6 +18,7 @@ export default function countWidth({
// 这个是一站式的元素的宽度
}
changeVisitor(json, uuid);
// console.log('showDiv', showDiv);
return showDiv;
}
......@@ -47,6 +48,7 @@ function changeVisitor(json, uuid) {
// 变动时回调
const callback = function (mutations) {
// console.log('变动观察器callback')
if(!json.twidth){
let dxx = document.querySelector(`td[data-cell-id="${uuid}"] .mobelDivClassName`);
if(dxx && dxx.style.width === '500px'){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论