From a8654c4036e29dbf66e14b1bf02fc65136e847d2 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Mon, 15 Dec 2025 10:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=91=8A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=88=B7=E6=96=B0=E9=A6=96=E9=A1=B5=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/AloneReportComparison.vue | 70 +++---- frontend/src/renderer/src/views/Dashboard.vue | 39 ++-- frontend/src/renderer/src/views/Detection.vue | 2 +- .../src/renderer/src/views/Detection_bak.vue | 1 - .../src/renderer/src/views/PatientProfile.vue | 3 +- .../renderer/src/views/PatientProfile2.vue | 12 +- .../renderer/src/views/PopUpOnlyReport.vue | 171 ++++++++++++++++-- .../src/renderer/src/views/PopUpReport.vue | 93 +++++----- .../renderer/src/views/ReportComparison.vue | 5 +- 9 files changed, 241 insertions(+), 155 deletions(-) diff --git a/frontend/src/renderer/src/views/AloneReportComparison.vue b/frontend/src/renderer/src/views/AloneReportComparison.vue index 224dac9f..2569414a 100644 --- a/frontend/src/renderer/src/views/AloneReportComparison.vue +++ b/frontend/src/renderer/src/views/AloneReportComparison.vue @@ -8,44 +8,48 @@ @click="generatePDF">
@@ -214,7 +218,7 @@
import { ref, onMounted, onUnmounted } from 'vue'
import { historyAPI,getBackendUrl } from '@/services/api.js'
import { ElMessage } from 'element-plus'
-
+import dayjs from 'dayjs';
const emit = defineEmits([ 'closeAloneReportComparison' ]);
const props = defineProps({
selectedPatient: {
@@ -339,7 +343,7 @@ const generatePDF = async () => {
const url = URL.createObjectURL(blob)
const a = document.createElement('a')
a.href = url
- a.download = '对比报告'
+ a.download = '体态测量对比报告单-' + dayjs().format('YYYY-MM-DD HH:mm:ss')
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
@@ -447,12 +451,13 @@ function handleCancel(){
display: flex;
}
.AloneReportComparison-container-leftbox{
- width: 50%;
+ width: calc(50% - 5px);
border-right:1px solid rgb(208, 208, 208) ;
box-sizing: border-box;
}
.AloneReportComparison-container-rightbox{
- width: 50%;
+ margin-left: 10px;
+ width: calc(50% - 5px);
box-sizing: border-box;
}
.displayflex{
@@ -621,19 +626,6 @@ function handleCancel(){
background-color: white !important;
}
- /* 左右分栏调整 */
- .AloneReportComparison-container-leftbox,
- .AloneReportComparison-container-rightbox {
- width: 49% !important;
- display: inline-block !important;
- vertical-align: top !important;
- box-sizing: border-box !important;
- margin: 0 !important;
- padding: 0 10px !important;
- border: none !important;
- /* 允许分栏内部内容自然分页 */
- break-inside: auto !important;
- }
.AloneReportComparison-container-leftbox {
border-right: 1px solid #ccc !important;
@@ -661,26 +653,19 @@ function handleCancel(){
padding-bottom: 10px !important;
}
- .AloneReportComparison-container-display,
+ /* .AloneReportComparison-container-display,
.AloneReportComparison-container-userinfodisplay {
padding: 10px 0 !important;
- }
-
- .AloneReportComparison-container-userinfotext2 {
- font-size: 14px !important;
- width: auto !important;
- margin-right: 20px !important;
- padding-bottom: 5px !important;
- }
+ } */
/* 标题字号调整 */
- .AloneReportComparison-content-title,
+ /* .AloneReportComparison-content-title,
.AloneReportComparison-container-testdatatitle,
.AloneReportComparison-title2 {
font-size: 16px !important;
padding-top: 10px !important;
padding-bottom: 5px !important;
- }
+ } */
/* 分页控制 */
.AloneReportComparison-content-title {
@@ -703,6 +688,7 @@ function handleCancel(){
padding-top: 40px;
border-top: 1px solid #333;
display: flex;
+ justify-content: space-between;
font-weight: 700;
font-style: normal;
color: rgb(40, 40, 40);
diff --git a/frontend/src/renderer/src/views/Dashboard.vue b/frontend/src/renderer/src/views/Dashboard.vue
index 948f54ac..9f636de1 100644
--- a/frontend/src/renderer/src/views/Dashboard.vue
+++ b/frontend/src/renderer/src/views/Dashboard.vue
@@ -23,6 +23,7 @@
@@ -350,7 +354,7 @@ function handleCancel(){
}
.PopUpOnlyReport-container-body{
margin:20px auto 0;
- width: 1600px;
+ width: 1048px;
background: #fff;
border-radius: 5px;
padding: 50px 0 20px;
@@ -538,9 +542,140 @@ function handleCancel(){
padding-top: 40px;
border-top: 1px solid #333;
display: flex;
+ justify-content: space-between;
font-weight: 700;
font-style: normal;
color: rgb(40, 40, 40);
font-size: 18px;
}
-
\ No newline at end of file
+
+
+
diff --git a/frontend/src/renderer/src/views/PopUpReport.vue b/frontend/src/renderer/src/views/PopUpReport.vue
index 41399958..508ec77d 100644
--- a/frontend/src/renderer/src/views/PopUpReport.vue
+++ b/frontend/src/renderer/src/views/PopUpReport.vue
@@ -4,44 +4,48 @@
alt="" style="cursor: pointer;position: fixed; right: 20px; top: 20px;z-index: 99;"
@click="handleCancel">