修改BUG

This commit is contained in:
Euni4U 2025-03-31 17:27:25 +08:00
parent ec07b415bb
commit 5ee5033b89
2 changed files with 10 additions and 2 deletions

View File

@ -942,6 +942,7 @@
line-height: 1.6;
}
.summary-tip {
margin-top: 20px !important;
padding: 15px !important;
@ -1679,6 +1680,15 @@
// 处理汇总内容分页修改
function handleSummaryPagination(summaryText) {
// 添加处理标记,防止重复处理
if (window._summaryProcessed && document.getElementById('summary-content-1').textContent) {
console.log('汇总内容已处理,跳过重复操作');
return;
}
// 设置处理标记
window._summaryProcessed = true;
if (!summaryText || summaryText === '--') {
// 如果没有汇总内容,隐藏第二页
document.getElementById('summary-page-2').style.display = 'none';

View File

@ -364,8 +364,6 @@ const handleIframeLoad = async () => {
//
const summaryElement = doc.getElementById('summary-content-1')
if (summaryElement) {
summaryElement.textContent = reportData.summaryResult || '--'
//
if (iframe?.contentWindow && 'handleSummaryPagination' in iframe.contentWindow) {
(iframe.contentWindow as any).handleSummaryPagination(reportData.summaryResult || '--');