From a86c4bdd0ee7bd8d5cc11953e2879cb74292aa34 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 22 Mar 2024 16:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E7=81=B6=E4=BF=9D=E5=AD=98=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/Fusion/PetCt.vue | 22 ++----------------- .../dicoms/components/Fusion/Questions.vue | 13 ++++++----- .../dicoms/components/Lugano/QuestionForm.vue | 5 +++-- .../reading/dicoms/components/Questions.vue | 13 ++++++----- 4 files changed, 20 insertions(+), 33 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue index dbc65232..5cc0df6f 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue @@ -1978,7 +1978,7 @@ export default { imageLocation(obj) { return new Promise(resolve => { console.log('imageLocation') - this.setToolToTarget(obj) + this.setToolToTarget() if (!obj.otherMeasureData) { resolve() return @@ -2005,24 +2005,7 @@ export default { }) }, setToolToTarget(obj) { - var toolGroupIds = [ctToolGroupId, ptToolGroupId, fusionToolGroupId] - if (this.readingTaskState < 2 && obj.markTool && !obj.isMarked) { - toolGroupIds.forEach((toolGroupId) => { - const toolGroup = ToolGroupManager.getToolGroup(toolGroupId) - if (this.activeTool) { - toolGroup.setToolPassive(this.activeTool) - } - toolGroup.setToolActive(obj.markTool, { - bindings: [ - { - mouseButton: MouseBindings.Primary // Left Click - } - ] - }) - }) - this.activeTool = obj.markTool - } else { - if (this.activeTool === obj.markTool) { + if (this.activeTool) { toolGroupIds.forEach((toolGroupId) => { const toolGroup = ToolGroupManager.getToolGroup(toolGroupId) @@ -2030,7 +2013,6 @@ export default { }) this.activeTool = '' } - } this.isNonTargetMeasurement = false }, getTargetIdImage( diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue index 701dbbf3..da3a28b4 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue @@ -378,18 +378,19 @@ export default { loading.close() return } - FusionEvent.$emit('getScreenshots', { otherMeasureData: annotationObj.OtherMeasureData }, async val => { + var obj = Object.assign({},annotationObj) + FusionEvent.$emit('getScreenshots', { otherMeasureData: obj.OtherMeasureData }, async val => { var pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, val) var picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : '' - if (annotationObj && annotationObj.OtherMeasureData) { - var otherMeasureData = Object.assign({}, annotationObj.OtherMeasureData) + if (obj && obj.OtherMeasureData) { + var otherMeasureData = Object.assign({}, obj.OtherMeasureData) for (const k in otherMeasureData.data.cachedStats) { otherMeasureData.data.cachedStats[k].pointsInShape = [] } - annotationObj.OtherMeasureData = JSON.stringify(otherMeasureData) - annotationObj.OtherPicturePath = picturePath - questionMarkInfoList.push(annotationObj) + obj.OtherMeasureData = JSON.stringify(otherMeasureData) + obj.OtherPicturePath = picturePath + questionMarkInfoList.push(obj) } for (const k in this.questionForm) { if (k === question.Id) { diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue index 1dff7ca5..0e1d6d8d 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue @@ -5,7 +5,7 @@ v-loading="loading" :model="questionForm" size="mini" - class="measurement-form" + class="measurement-form" >
@@ -179,6 +179,7 @@