自定义阅片分类问题自动计算bug修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5ad0da7a4a
commit
1586643fc2
|
|
@ -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()
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue