From b6500c62c5ab5892d0d44bbc840e43ceef1c13c9 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 30 Oct 2025 13:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E6=A0=87=E8=AE=B0=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/visit-review/components/FileViewer.vue | 9 ++++++--- .../reading/visit-review/components/ReadPage.vue | 5 ++--- 2 files changed, 8 insertions(+), 6 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 fb9da17e..bb0d943b 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 @@ -119,7 +119,7 @@ -
+
{ this.annotationModifiedListener(evt) - }, 100) + }, 0) eventTarget.addEventListener( toolsEvents.ANNOTATION_MODIFIED, (evt) => { @@ -1209,10 +1210,12 @@ export default { const measureData = Object.assign({}, annotation) const params = {} const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex) + this.loading = true await this.getScreenshots({ visitTaskId: this.taskInfo.VisitTaskId, annotation }, async (base64Str) => { + this.loading = false const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str) let picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : '' if (annotation.id) params.Id = annotation.id diff --git a/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue b/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue index 20ce1971..daf31b18 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue @@ -204,9 +204,8 @@ export default { i.MeasureData.markId = i.MarkId i.MeasureData.id = i.Id } - this.psArr = [] if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) { - this.psArr.push({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps }) + this.setPS({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps }) } return i }) @@ -317,7 +316,7 @@ export default { i.MeasureData.id = i.Id } if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) { - this.psArr.push({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps }) + this.setPS({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps }) } return i })