From 121bf497bb73ab6f7b8164e95b774ce988b30cbc Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Tue, 18 Mar 2025 15:26:51 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E9=98=85=E7=89=87=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../visit-review/components/FileViewer.vue | 232 ++++++++++++++++--
.../visit-review/components/FormItem.vue | 2 +-
.../visit-review/components/ReadPage.vue | 24 +-
3 files changed, 232 insertions(+), 26 deletions(-)
diff --git a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue
index a953a66c..c5f698a0 100644
--- a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue
+++ b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue
@@ -63,6 +63,14 @@
>
+
+
-
+
@@ -152,7 +154,8 @@ export default {
clinicalDataVisible: false,
isClinicalDataFullscreen: false,
trialId: '',
- cdVisitTaskId: ''
+ cdVisitTaskId: '',
+ psArr: []
}
},
computed: {
@@ -249,7 +252,16 @@ export default {
visitTaskId: visitTaskId
}
const res = await getNoneDicomMarkListOutDto(params)
- this.$set(this.visitTaskList[visitTaskIdx], 'Annotations', res.Result.NoneDicomMarkList)
+ let arr = res.Result.NoneDicomMarkList.map(i=>{
+ if (typeof i.MeasureData === 'string') {
+ i.MeasureData = JSON.parse(i.MeasureData)
+ }
+ if (i.MeasureData.metadata.toolName === 'Length' && this.psArr.findIndex(p=>p.NoneDicomFileId === i.NoneDicomFileId) === -1) {
+ this.psArr.push({NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps})
+ }
+ return i
+ })
+ this.$set(this.visitTaskList[visitTaskIdx], 'Annotations', arr)
this.loading = false
resolve()
} catch (e) {
@@ -259,6 +271,14 @@ export default {
}
})
},
+ setPS(obj) {
+ let i = this.psArr.findIndex(p=>p.NoneDicomFileId === obj.NoneDicomFileId)
+ if (i > -1) {
+ this.psArr[i].PS = obj.PS
+ } else {
+ this.psArr.push(obj)
+ }
+ },
// 切换任务
toggleTask(taskInfo) {
this.setActiveTaskVisitId(taskInfo.VisitTaskId)