自定义阅片分类问题自动计算bug修复
continuous-integration/drone/push Build is passing Details

main
caiyiling 2026-01-15 12:26:24 +08:00
parent 5ad0da7a4a
commit 1586643fc2
2 changed files with 24 additions and 1 deletions

View File

@ -1077,6 +1077,7 @@ export default {
}
})
}
}
// this.$emit('formItemNumberChange')
},
@ -1335,7 +1336,8 @@ export default {
}
}
const val = this.getAnnotationProp(item.MeasureData, item.ImageToolAttribute)
this.$set(this.QuestionsForm, item.TableQuestionId, val)
this.setFormTableItemData({key: item.TableQuestionId, val})
// this.$set(this.QuestionsForm, item.TableQuestionId, val)
this.formItemTableNumberChange()
})
},

View File

@ -988,6 +988,27 @@ export default {
}
let val = this.getAnnotationProp(annotation, prop)
this.$set(this.questionForm, questionId, val)
this.classArr.map(i => {
if (i.triggerId === questionId) {
let answer = null
const list = JSON.parse(i.classifyAlgorithms)
if (i.classifyType === 0) {
const o = list.find(v => {
return (
parseFloat(val) >= parseFloat(v.gt) &&
parseFloat(val) < parseFloat(v.lt)
)
})
answer = o ? o.label : null
} else if (i.classifyType === 1) {
const o = list.find(v => {
return v.val.includes(val)
})
answer = o ? o.label : null
}
this.$set(this.questionForm, i.classId, answer)
}
})
},
getAnnotationProp(annotation, prop) {
if (!annotation || !prop) return