diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue index b957a983..61d76bc6 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue @@ -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() }) }, diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue index d2d0b678..1db2a526 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue @@ -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