修改BUG
This commit is contained in:
parent
ec07b415bb
commit
5ee5033b89
@ -941,6 +941,7 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.summary-tip {
|
.summary-tip {
|
||||||
margin-top: 20px !important;
|
margin-top: 20px !important;
|
||||||
@ -1679,6 +1680,15 @@
|
|||||||
|
|
||||||
// 处理汇总内容分页修改
|
// 处理汇总内容分页修改
|
||||||
function handleSummaryPagination(summaryText) {
|
function handleSummaryPagination(summaryText) {
|
||||||
|
// 添加处理标记,防止重复处理
|
||||||
|
if (window._summaryProcessed && document.getElementById('summary-content-1').textContent) {
|
||||||
|
console.log('汇总内容已处理,跳过重复操作');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置处理标记
|
||||||
|
window._summaryProcessed = true;
|
||||||
|
|
||||||
if (!summaryText || summaryText === '--') {
|
if (!summaryText || summaryText === '--') {
|
||||||
// 如果没有汇总内容,隐藏第二页
|
// 如果没有汇总内容,隐藏第二页
|
||||||
document.getElementById('summary-page-2').style.display = 'none';
|
document.getElementById('summary-page-2').style.display = 'none';
|
||||||
|
@ -364,8 +364,6 @@ const handleIframeLoad = async () => {
|
|||||||
// 更新汇总结果
|
// 更新汇总结果
|
||||||
const summaryElement = doc.getElementById('summary-content-1')
|
const summaryElement = doc.getElementById('summary-content-1')
|
||||||
if (summaryElement) {
|
if (summaryElement) {
|
||||||
summaryElement.textContent = reportData.summaryResult || '--'
|
|
||||||
|
|
||||||
// 处理汇总内容分页
|
// 处理汇总内容分页
|
||||||
if (iframe?.contentWindow && 'handleSummaryPagination' in iframe.contentWindow) {
|
if (iframe?.contentWindow && 'handleSummaryPagination' in iframe.contentWindow) {
|
||||||
(iframe.contentWindow as any).handleSummaryPagination(reportData.summaryResult || '--');
|
(iframe.contentWindow as any).handleSummaryPagination(reportData.summaryResult || '--');
|
||||||
|
Loading…
Reference in New Issue
Block a user