非dicom测量值与比例尺转化问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5c05a11ec4
commit
4057f1893f
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue