From dc6340f65c113e0fb6c26ec27fdd073824bb9248 Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Mon, 18 Mar 2024 16:06:38 +0800
Subject: [PATCH] =?UTF-8?q?slice=20location=E6=98=BE=E7=A4=BA=E5=80=BC?=
=?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=A1=B9=E7=9B=AE=E6=A0=87=E5=87=86=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E7=9A=84=E4=BF=9D=E7=95=99=E5=B0=8F=E6=95=B0=E4=BD=8D?=
=?UTF-8?q?=E6=95=B0=E8=BF=9B=E8=A1=8C=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reading/dicoms/components/DicomCanvas.vue | 2 +-
.../trials-panel/reading/dicoms/components/Questions.vue | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue
index c99788d6..1d5af629 100644
--- a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue
@@ -99,7 +99,7 @@
-
Location: {{ dicomInfo.location }}
+
Location: {{ Number(dicomInfo.location).toFixed(digitPlaces) }}
Slice Thickness: {{ dicomInfo.thick }}mm
WW/WL: {{ dicomInfo.wwwc }}
diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue
index 752bad7b..50b83e84 100644
--- a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue
@@ -80,7 +80,8 @@ export default {
criterionType: null,
spleenInfo: null,
calculateSpleenStatus: '',
- formChanged: false
+ formChanged: false,
+ digitPlaces:null
}
},
computed: {
@@ -106,6 +107,8 @@ export default {
}
},
mounted() {
+ var digitPlaces = Number(localStorage.getItem('digitPlaces'))
+ this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
this.criterionType = parseInt(localStorage.getItem('CriterionType'))
DicomEvent.$on('setReadingState', readingTaskState => {
this.readingTaskState = readingTaskState
@@ -477,7 +480,7 @@ export default {
frame: isNaN(parseInt(measurement.frame)) ? 0 : measurement.frame
}
if (measurement.type === 'ArrowAnnotate') {
- const location = measurement.location ? measurement.location : null
+ const location = measurement.location ? Number(measurement.location).toFixed(this.digitPlaces) : null
this.$set(this.questionForm, this.measurements[idx].QuestionId, location || null)
if (this.measurements[idx].QuestionType === 60 || this.measurements[idx].QuestionType === 61) {
var length = this.getSpleenL()
@@ -511,7 +514,7 @@ export default {
var sb = this.questionForm[this.spleenBottomId]
sb = isNaN(parseFloat(sb)) ? null : parseFloat(sb)
if (st && sb) {
- length = Math.abs(st - sb)
+ length = Math.abs(st - sb).toFixed(this.digitPlaces)
}
return length
},