非dicom测量值与比例尺转化问题
This commit is contained in:
+2
-2
@@ -1366,10 +1366,10 @@ export default {
|
|||||||
let ps = annotation.ps
|
let ps = annotation.ps
|
||||||
if (prop === 'area') {
|
if (prop === 'area') {
|
||||||
value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces)
|
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)
|
value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces)
|
||||||
} else {
|
} else {
|
||||||
value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces)
|
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
||||||
}
|
}
|
||||||
} else if (this.isNoneDicom && value !== null) {
|
} else if (this.isNoneDicom && value !== null) {
|
||||||
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
||||||
|
|||||||
+4
-4
@@ -1066,10 +1066,10 @@ export default {
|
|||||||
let ps = annotation.ps
|
let ps = annotation.ps
|
||||||
if (prop === 'area') {
|
if (prop === 'area') {
|
||||||
value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces)
|
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)
|
value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces)
|
||||||
} else {
|
} else {
|
||||||
value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces)
|
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
||||||
}
|
}
|
||||||
} else if (this.isNoneDicom && value !== null) {
|
} else if (this.isNoneDicom && value !== null) {
|
||||||
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
||||||
@@ -1212,7 +1212,7 @@ export default {
|
|||||||
this.questionMarkInfoList.forEach(item => {
|
this.questionMarkInfoList.forEach(item => {
|
||||||
DicomEvent.$emit('closeAddTableCol', { RowId: item.RowId })
|
DicomEvent.$emit('closeAddTableCol', { RowId: item.RowId })
|
||||||
let prop = this.questionImageToolAttributeInfo[item.QuestionId] || this.questionImageToolAttributeInfo[item.TableQuestionId]
|
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
|
const referencedImageId = item?.MeasureData?.metadata?.referencedImageId
|
||||||
if (!referencedImageId) return null
|
if (!referencedImageId) return null
|
||||||
const cacheKey = `imageId:${referencedImageId}`
|
const cacheKey = `imageId:${referencedImageId}`
|
||||||
@@ -1228,7 +1228,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (ps) {
|
if (ps) {
|
||||||
if (prop === 'area') value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces)
|
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 {
|
} else {
|
||||||
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user