修改BUG
This commit is contained in:
parent
ec07b415bb
commit
5ee5033b89
@ -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';
|
||||
|
@ -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 || '--');
|
||||
|
Loading…
Reference in New Issue
Block a user