From 2accaa48a6e257a2b74c966d0e18332d4ef3f9ec Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Fri, 9 Jan 2026 18:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=AA=E5=9B=BE=E4=BC=A0=E8=B6=B3=E9=83=A8?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E5=B0=BA=E5=AF=B8=EF=BC=8C=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9B=B8=E5=86=8C=E6=B7=BB=E5=8A=A0=E5=81=87=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=92=8C=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/src/views/Detection.vue | 10 +- .../src/renderer/src/views/PhotoAlbum.vue | 98 +++++++++++++------ 2 files changed, 78 insertions(+), 30 deletions(-) diff --git a/frontend/src/renderer/src/views/Detection.vue b/frontend/src/renderer/src/views/Detection.vue index 8e85ff80..d383574a 100644 --- a/frontend/src/renderer/src/views/Detection.vue +++ b/frontend/src/renderer/src/views/Detection.vue @@ -189,7 +189,7 @@ -
+
@@ -924,6 +924,7 @@ const contenGridRef =ref(null) // 实时检查整体box const wholeBodyRef = ref(null) // 身体姿态ref const camera1Ref = ref(null) const camera2Ref = ref(null) +const pressureRef = ref(null) const historyDialogVisible = ref(false) // 患者信息(从页面获取或通过API获取) const patientInfo = ref({ @@ -1993,6 +1994,13 @@ async function saveDetectionData() { pressure_image = tempInfo.value.pressure_data.foot_pressure.pressure_image foot_data = tempInfo.value.pressure_data.foot_pressure.pressure_zones } + + let pressureBox = pressureRef.value?.getBoundingClientRect() + let titile_height = 24 + pressure_image =[ + Math.round(pressureBox.x), Math.round(pressureBox.y)+ titile_height, + Math.round(pressureBox.width), Math.round(pressureBox.height) + ] let foot1_image="" if(tempInfo.value.camera1_frame != null && tempInfo.value.camera1_frame.image != null ){ diff --git a/frontend/src/renderer/src/views/PhotoAlbum.vue b/frontend/src/renderer/src/views/PhotoAlbum.vue index 4ca498fe..7192fbd0 100644 --- a/frontend/src/renderer/src/views/PhotoAlbum.vue +++ b/frontend/src/renderer/src/views/PhotoAlbum.vue @@ -1,44 +1,69 @@ @@ -91,17 +114,20 @@ function closeImageDetails(){ // 关闭图片对比页面 } .PhotoAlbum-imgul{ width: 100%; - height: calc(100% - 140px); + height: calc(100% - 160px); /* background: red; */ - margin-top: 10px; + margin-top: 20px; + padding:0px 57px; display: flex; flex-wrap:wrap ; align-content: flex-start; + overflow: auto; } .PhotoAlbum-imgbox{ - width: 23%; - height: 100%; + width: 274px; + height: 185px; + margin-bottom: 5px; } .PhotoAlbum-imgactive{ width: 100%; @@ -120,4 +146,18 @@ function closeImageDetails(){ // 关闭图片对比页面 justify-content: space-between; align-items: center; } +.delButton{ + width: 80px; + height: 40px; + background-color: rgba(89, 113, 148, 1); + font-family: 'Noto Sans SC', sans-serif; + font-weight: 400; + font-style: normal; + font-size: 14px; + color: rgba(255, 255, 255, 0.6); + border-radius: 4px; + display: flex; + justify-content: center; + align-items: center; +} \ No newline at end of file