非dicom测量值与比例尺转化问题
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-02-12 20:50:00 -05:00
parent 5c05a11ec4
commit 4057f1893f
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)
}