修改报告首页样式

This commit is contained in:
lxd 2025-03-19 14:52:42 +08:00
parent 21117589a8
commit a6ba893a37
3 changed files with 36 additions and 22 deletions

View File

@ -12,7 +12,8 @@
.constitution-table { .constitution-table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
margin: 10px auto 30px; /* 上边距10px左右auto居中下边距30px留出空间 */ margin: 10px auto 30px;
/* 上边距10px左右auto居中下边距30px留出空间 */
} }
.constitution-table td { .constitution-table td {
@ -25,7 +26,7 @@
.avatar-container { .avatar-container {
width: 120px; width: 120px;
height: 160px; height: 160px;
margin: 30px auto; margin: 50px auto;
border: 1px solid #000; border: 1px solid #000;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -66,8 +67,10 @@
background-color: #4a90e2; background-color: #4a90e2;
color: white; color: white;
padding: 15px; padding: 15px;
font-size: 18px; /* 这里控制字体大小 */ font-size: 18px;
font-weight: bold;/* 这里控制字体粗细 */ /* 这里控制字体大小 */
font-weight: bold;
/* 这里控制字体粗细 */
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
} }
@ -106,7 +109,8 @@
border: 1px solid #ddd; border: 1px solid #ddd;
padding: 12px; padding: 12px;
text-align: left; text-align: left;
font-size: 16px; /* 可以在这里设置字体大小 */ font-size: 16px;
/* 可以在这里设置字体大小 */
} }
.exam-table th { .exam-table th {
@ -479,7 +483,7 @@
} }
.repott_concent_title { .repott_concent_title {
font-size: 40pt; font-size: 30pt;
letter-spacing: 30px; letter-spacing: 30px;
} }
@ -658,16 +662,27 @@
<span>&nbsp;&nbsp;体检编号:--</span> <span>&nbsp;&nbsp;体检编号:--</span>
</div> </div>
</div> </div>
<div class="repott_concent"> <!-- 添加标题下方的文字,靠右对齐 -->
<div class="repott_concent_area"> <div style="text-align: right; padding: 10px 20px; font-size: 16px; color: #333;">
<div class="repott_concent_title">健康</div> 本报告属个人隐私范畴</br>
<div class="repott_concent_title">体检</div> 未获本人同意,不得传播
<div class="repott_concent_title">报告</div> </div>
</div> <div class="repott_concent" style="top: -350px;">
<div class="repott_concent_english"> <div style="display: flex; align-items: flex-start; justify-content: center; margin-bottom: 20px;">
<div class="repott_concent_english_health">Health</div> <img src="/首页标签.png" alt="logo"
<div class="repott_concent_Examination">Examination</div> style="width: 85px; height: 92px; ">
<div class="repott_concent_Report">Report</div> <div>
<div class="repott_concent_area">
<div class="repott_concent_title">健康</div>
<div class="repott_concent_title">体检</div>
<div class="repott_concent_title">报告</div>
</div>
<div class="repott_concent_english">
<div class="repott_concent_english_health">Health</div>
<div class="repott_concent_Examination">Examination</div>
<div class="repott_concent_Report">Report</div>
</div>
</div>
</div> </div>
<!-- 添加头像区域 --> <!-- 添加头像区域 -->
<div class="avatar-container"> <div class="avatar-container">
@ -1197,7 +1212,7 @@
containers.forEach(container => { containers.forEach(container => {
const imageContainer = container.querySelector('.pdf-image-container'); const imageContainer = container.querySelector('.pdf-image-container');
if (imageContainer.style.display !== 'block') { if (imageContainer.style.display !== 'block') {
allRendered = false; allRendered = false;
} }
}); });

BIN
public/首页标签.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -12,7 +12,7 @@
<div class="iframe-container"> <div class="iframe-container">
<iframe <iframe
v-if="dialogVisible" v-if="dialogVisible"
src="\templates\report-template.html" src="/templates/report-template.html"
frameborder="0" frameborder="0"
style="width: 100%; height: 100%; border: none" style="width: 100%; height: 100%; border: none"
@load="handleIframeLoad" @load="handleIframeLoad"
@ -28,6 +28,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import type { App } from 'vue'
import { ref, defineProps, defineEmits, watch } from 'vue' import { ref, defineProps, defineEmits, watch } from 'vue'
import { PatientApi } from '@/api/inspect/inspectpatient/index' import { PatientApi } from '@/api/inspect/inspectpatient/index'
import Message from '@/layout/components/Message/src/Message.vue' import Message from '@/layout/components/Message/src/Message.vue'
@ -348,7 +349,6 @@ const handleIframeLoad = async () => {
reportData.data.forEach((item) => { reportData.data.forEach((item) => {
if (item.data) { if (item.data) {
let reportTitle = '' let reportTitle = ''
console.log('type', item.pacsDataType)
switch (item.pacsDataType) { switch (item.pacsDataType) {
case 'cbc': case 'cbc':
reportTitle = '血常规检查报告' reportTitle = '血常规检查报告'
@ -368,7 +368,6 @@ const handleIframeLoad = async () => {
default: default:
break break
} }
console.log('reportTitle', reportTitle)
if (reportTitle) { if (reportTitle) {
const reportSection = Array.from(doc.querySelectorAll('.report-item')).find((section) => { const reportSection = Array.from(doc.querySelectorAll('.report-item')).find((section) => {
const titleElement = section.querySelector('.report-title') const titleElement = section.querySelector('.report-title')