From f6eab06c78172b01a979876d95101c1e4690cb20 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 26 Feb 2024 17:23:16 +0800 Subject: [PATCH] =?UTF-8?q?suv=E6=B5=8B=E9=87=8F=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=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 | 71 ++++---- .../dicoms/components/Fusion/QuestionItem.vue | 2 +- .../dicoms/components/Fusion/Questions.vue | 89 +++++----- .../components/Fusion/TableQuestionItem.vue | 167 +++++++++--------- .../components/Fusion/TableQuestions.vue | 2 - .../components/Fusion/tools/CircleROITool.js | 10 +- 6 files changed, 177 insertions(+), 164 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 01a8b054..f9317df0 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 @@ -690,46 +690,46 @@ export default { }) const debouncedCallback = this.debounce((e) => { - const { annotation } = e.detail - const { cachedStats } = annotation.data - var isNotValidAnnotationNum = 0 - for (const volumeId in cachedStats) { - var statObj = cachedStats[volumeId] - var arr = Object.keys(statObj) - if (arr.length < 2) { - ++isNotValidAnnotationNum - } - } - if (isNotValidAnnotationNum === 0) { - this.onAnnotationModified(e) - } else { - // console.log('异常标记:', annotation) - // const { remark } = annotation.data - // if (remark === 'Liver' || remark === 'Mediastinum') { - // this.$refs['questions'].setOutsideMeasuredData(annotation) - // } else { - // this.$refs['tableQuestions'].setOutsideMeasuredData(annotation) - // } - // 移除标记 - this.removeAnnotation({ otherMeasureData: annotation }) - const { remark } = annotation.data - // 清除病灶上的标记信息 - if (remark === 'Liver' || remark === 'Mediastinum') { - this.$refs['questions'].clearMeasuredData(remark) - // 激活工具 - this.setNonTargetMeasurementStatus({ status: true, toolName: 'CircleROI' }) - } else { - this.$refs['tableQuestions'].clearMeasuredData() - // 激活工具 - this.setBasicToolActive('CircleROI') - } - } + // const { annotation } = e.detail + this.onAnnotationModified(e) + // const { cachedStats } = annotation.data + // var isNotValidAnnotationNum = 0 + // for (const volumeId in cachedStats) { + // var statObj = cachedStats[volumeId] + // var arr = Object.keys(statObj) + // if (arr.length < 2) { + // ++isNotValidAnnotationNum + // } + // } + // if (!annotation.isHandleOutsideImage) { + // this.onAnnotationModified(e) + // } else { + // // console.log('异常标记:', annotation) + // // const { remark } = annotation.data + // // if (remark === 'Liver' || remark === 'Mediastinum') { + // // this.$refs['questions'].setOutsideMeasuredData(annotation) + // // } else { + // // this.$refs['tableQuestions'].setOutsideMeasuredData(annotation) + // // } + // // 移除标记 + // // this.removeAnnotation({ otherMeasureData: annotation }) + // // const { remark } = annotation.data + // // // 清除病灶上的标记信息 + // // if (remark === 'Liver' || remark === 'Mediastinum') { + // // this.$refs['questions'].clearMeasuredData(remark) + // // // 激活工具 + // // this.setNonTargetMeasurementStatus({ status: true, toolName: 'CircleROI' }) + // // } else { + // // this.$refs['tableQuestions'].clearMeasuredData() + // // // 激活工具 + // // this.setBasicToolActive('CircleROI') + // // } + // } }, 120) eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_MODIFIED, (e) => { debouncedCallback(e) }) eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_SELECTION_CHANGE, (e) => { - console.log(e) const { detail } = e const { selection } = detail if (selection && selection.length > 0) { @@ -833,7 +833,6 @@ export default { if (this.isNonTargetMeasurement || annotation.data.remark === 'Liver' || annotation.data.remark === 'Mediastinum') { this.$refs['questions'].setMeasuredData(measureData) } else { - console.log('onAnnotationAdded') this.$refs['tableQuestions'] && this.$refs['tableQuestions'].setMeasuredData(measureData) } diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue index 1ddd5548..3374aeb2 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue @@ -234,7 +234,7 @@