标记值不正确
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-10-30 14:24:59 +08:00
parent b6500c62c5
commit 3832312041
1 changed files with 11 additions and 6 deletions

View File

@ -944,12 +944,17 @@ export default {
&& Object.prototype.hasOwnProperty.call(cachedStats, prop)
if (!hasProp) return null
let value = cachedStats[prop]
if (this.isNoneDicom && annotation.ps) {
if (this.isNoneDicom && annotation.ps && value !== null) {
let ps = annotation.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 === 'area') {
value = this.reRound(csUtils.roundNumber(value * ps * ps), this.digitPlaces)
} else if (prop === 'length' || prop === 'perimeter') {
value = this.reRound(csUtils.roundNumber(value * ps), this.digitPlaces)
} else {
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
}
} else if (this.isNoneDicom && value !== null) {
value = this.reRound(csUtils.roundNumber(value))
value = this.reRound(csUtils.roundNumber(value), this.digitPlaces)
}
return value !== null
? parseFloat(value).toFixed(this.digitPlaces)
@ -1147,12 +1152,12 @@ export default {
}
if (!isRemovePlottingScale) {
this.questionMarkInfoList.forEach(item => {
if (item.Path === path && ['Length', 'Perimeter', 'Area'].includes(item.MarkTool)) {
let prop = this.questionImageToolAttributeInfo[item.QuestionId]
if (item.Path === path && ['length', 'perimeter', 'area'].includes(prop)) {
const referencedImageId = item?.MeasureData?.metadata?.referencedImageId
if (!referencedImageId) return null
const cacheKey = `imageId:${referencedImageId}`
const cachedStats = item?.MeasureData.data?.cachedStats?.[cacheKey]
let prop = item.MarkTool.toLowerCase();
const hasProp = cachedStats
&& Object.prototype.hasOwnProperty.call(cachedStats, prop)
if (!hasProp) return null