From 1586643fc2b06fe0aae5f2fd53272fab897307f5 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 15 Jan 2026 12:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=98=85=E7=89=87?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=97=AE=E9=A2=98=E8=87=AA=E5=8A=A8=E8=AE=A1?= =?UTF-8?q?=E7=AE=97bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/customize/QuestionFormItem.vue | 4 +++- .../components/customize/QuestionList.vue | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) 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