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
},