From ec07b415bbd649af644816849e887636a98944b8 Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Mon, 31 Mar 2025 13:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/templates/report-template.html | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/public/templates/report-template.html b/public/templates/report-template.html index 5755fde..258adb3 100644 --- a/public/templates/report-template.html +++ b/public/templates/report-template.html @@ -301,16 +301,13 @@ /* 一般检查的小结 */ .general-exam .report-summary { - padding: 5px 40px !important; /* 增加左右内边距 */ - left: 0 !important; /* 重置left值,因为我们使用padding */ - right: 0 !important; + padding: 5px 40px !important; + position: static !important; /* 改为静态定位 */ margin-left: 50px !important; margin-right: 20px !important; - bottom: 170px !important; + margin-top: 30px !important; /* 设置与表格的距离 */ min-height: auto; - /* 移除固定高度 */ - margin-bottom: 0 !important; - position: absolute; + margin-bottom: 80px !important; /* 确保底部有足够空间不遮挡页脚 */ font-size: 14px !important; background-color: transparent !important; } @@ -1800,7 +1797,7 @@ document.body.appendChild(testElement); // 获取尿常规内容区域的可用高度 - const availableHeight = 250; // 大约可用高度,根据实际情况调整 + const availableHeight = 270; // 大约可用高度,根据实际情况调整 if (testElement.offsetHeight <= availableHeight) { // 内容不超过一页,隐藏第二页 @@ -1821,7 +1818,7 @@ let secondPageText = urineText.substring(firstPageChars); // 尝试在更合适的位置分割,如句号或逗号 - const breakPoints = ['。', ',', ';', '\n']; + const breakPoints = ['】', '\n']; for (let i = 30; i > 0; i--) { const checkPos = firstPageChars - i; if (checkPos <= 0) continue; @@ -1896,7 +1893,7 @@ document.body.appendChild(testElement); // 获取生化内容区域的可用高度 - const availableHeight = 250; // 可用高度,与尿常规相同 + const availableHeight = 270; // 可用高度,与尿常规相同 if (testElement.offsetHeight <= availableHeight) { // 内容不超过一页,隐藏第二页 @@ -1917,7 +1914,7 @@ let secondPageText = biochemistryText.substring(firstPageChars); // 尝试在更合适的位置分割,如句号或逗号 - const breakPoints = ['。', ',', ';', '\n']; + const breakPoints = ['】', '\n']; for (let i = 30; i > 0; i--) { const checkPos = firstPageChars - i; if (checkPos <= 0) continue; @@ -1964,7 +1961,7 @@ document.body.appendChild(testElement); // 获取血常规内容区域的可用高度 - const availableHeight = 250; // 可用高度,与尿常规相同 + const availableHeight = 270; // 可用高度,与尿常规相同 if (testElement.offsetHeight <= availableHeight) { // 内容不超过一页,隐藏第二页 @@ -1985,7 +1982,7 @@ let secondPageText = bloodText.substring(firstPageChars); // 尝试在更合适的位置分割,如句号或逗号 - const breakPoints = ['。', ',', ';', '\n']; + const breakPoints = ['】', '\n']; for (let i = 30; i > 0; i--) { const checkPos = firstPageChars - i; if (checkPos <= 0) continue;