From 4057f1893faa010d2b900bd3852c4202bd8d7a21 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 12 Feb 2026 20:50:00 -0500 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E6=B5=8B=E9=87=8F=E5=80=BC?= =?UTF-8?q?=E4=B8=8E=E6=AF=94=E4=BE=8B=E5=B0=BA=E8=BD=AC=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms3D/components/customize/QuestionFormItem.vue | 4 ++-- .../dicoms3D/components/customize/QuestionList.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue index b8232fa4..ea31b1bc 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue @@ -1366,10 +1366,10 @@ export default { let ps = annotation.ps if (prop === 'area') { value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces) - } else if (prop === 'length' || prop === 'perimeter') { + } else if (prop === 'length' || prop === 'perimeter' || prop === 'width') { value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) } else { - value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) + value = this.reRound(csUtils.roundNumber(value), this.digitPlaces) } } else if (this.isNoneDicom && value !== null) { value = this.reRound(csUtils.roundNumber(value), this.digitPlaces) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue index c0834044..15dc957f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue @@ -1066,10 +1066,10 @@ export default { let ps = annotation.ps if (prop === 'area') { value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces) - } else if (prop === 'length' || prop === 'perimeter') { + } else if (prop === 'length' || prop === 'perimeter' || prop === 'width') { value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) } else { - value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) + value = this.reRound(csUtils.roundNumber(value), this.digitPlaces) } } else if (this.isNoneDicom && value !== null) { value = this.reRound(csUtils.roundNumber(value), this.digitPlaces) @@ -1212,7 +1212,7 @@ export default { this.questionMarkInfoList.forEach(item => { DicomEvent.$emit('closeAddTableCol', { RowId: item.RowId }) let prop = this.questionImageToolAttributeInfo[item.QuestionId] || this.questionImageToolAttributeInfo[item.TableQuestionId] - if (item.Path === path && ['length', 'perimeter', 'area'].includes(prop)) { + if (item.Path === path && ['length', 'perimeter', 'area', 'width'].includes(prop)) { const referencedImageId = item?.MeasureData?.metadata?.referencedImageId if (!referencedImageId) return null const cacheKey = `imageId:${referencedImageId}` @@ -1228,7 +1228,7 @@ export default { } if (ps) { if (prop === 'area') value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces) - if (prop === 'length' || prop === 'perimeter') value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) + if (prop === 'length' || prop === 'perimeter' || prop === 'width') value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces) } else { value = this.reRound(csUtils.roundNumber(value), this.digitPlaces) }