From 9d9916a15d8cfbf8f354be8821cb25ea4d5ae3e6 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Mon, 1 Sep 2025 18:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B9=B3=E8=A1=A1=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/src/services/api.js | 4 +- .../src/renderer/src/views/PatientProfile.vue | 118 +++++++++++++++--- 2 files changed, 101 insertions(+), 21 deletions(-) diff --git a/frontend/src/renderer/src/services/api.js b/frontend/src/renderer/src/services/api.js index dc470627..542cdc4c 100644 --- a/frontend/src/renderer/src/services/api.js +++ b/frontend/src/renderer/src/services/api.js @@ -13,7 +13,7 @@ api.interceptors.request.use( if (window.electronAPI) { config.baseURL = window.electronAPI.getBackendUrl() } else { - config.baseURL = 'http://192.168.1.58:5000' + config.baseURL = 'http://192.168.1.65:5000' } // 只为需要发送数据的请求设置Content-Type @@ -637,7 +637,7 @@ export const getBackendUrl = () => { if (window.electronAPI) { return window.electronAPI.getBackendUrl() } else { - return 'http://192.168.1.58:5000' + return 'http://192.168.1.65:5000' } } diff --git a/frontend/src/renderer/src/views/PatientProfile.vue b/frontend/src/renderer/src/views/PatientProfile.vue index cf9ba9bf..1bc66e07 100644 --- a/frontend/src/renderer/src/views/PatientProfile.vue +++ b/frontend/src/renderer/src/views/PatientProfile.vue @@ -190,7 +190,7 @@ -
@@ -266,8 +266,8 @@
身体姿态
-
- 图片 +
+
@@ -292,36 +292,72 @@
-
+
足底压力
-
+
-
左前足54%
-
右前足54%
+ 左足
-
-
-
-
-
-
-
左后足54%
-
右后足54%
+
+ 右足
+
+
+
+ 左前足 + {{ footPressure.left_front + }}% +
+
+ 左后足 + {{ footPressure.left_rear }}% +
+
+ +
+
+
+
+ 右前足 + {{ footPressure.right_front + }}% +
+
+ 右后足 + {{ footPressure.right_rear + }}% +
+
+
+
+
+
左足总压力
+
{{ footPressure.left_total + }}%
+
+
+
右足总压力
+
{{ footPressure.right_total + }}%
+
+ +
+
视频图片
-
- 图片 +
+
@@ -386,6 +422,7 @@ const filteredRecords = computed(() => { formatDate(record.createdAt).includes(searchKeyword.value) ) }) +const footPressure = ref({}) const profileInfo = ref([]) const diagnosticForm = ref({ diagnosis_info: '', @@ -781,10 +818,17 @@ const playNewVideo = () => { videoPlayerRef.value[index].play() } } +const profileForm = ref({}) function detectionById(row) { + footPressure.value = {} historyAPI.detectionById(row.id).then((response)=>{ if(response.success){ - debugger + profileForm.value = response.data + if(response.data.foot_data !=null){ + footPressure.value = response.data.foot_data + } + + } }).catch(()=>{ @@ -1433,7 +1477,7 @@ onMounted(() => { background-color: rgba(85, 85, 85, 0.6); padding: 20px; border-radius: 5px; - height: 550px; + /* height: 550px; */ margin-top: 20px; } .detail-head-content{ @@ -1453,4 +1497,40 @@ onMounted(() => { right: 30px; cursor: pointer; } + + +.foot-container-marginleft { + margin-left: 40px; +} +.foot-container-paddingcolor{ + padding-left: 10px; + color: #ff9900; + font-size: 30px; + font-weight: 700; +} +.foot-container-shuline{ + width: 0px; + height: calc(100% + 20px); + border-top: 1px dashed red; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; +} +.foot-container-hengline{ + width: calc(100% + 20px); + height: 0; + border-left: 1px dashed red; + position: absolute; + top: 0; + left: -10px; + right: 10; + bottom: 0; + margin: auto; +} +.foot-container-margintop { + margin-top: 80px; +} \ No newline at end of file