From d05ea6c28ddc6d81e558a1283f9e88e5e121e298 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 11 Dec 2025 11:01:02 +0800 Subject: [PATCH] =?UTF-8?q?oct=E8=A1=A8=E5=8D=95=E7=88=B6=E9=A1=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=90=E9=A1=B9=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/OCT/QuestionList.vue | 4 ++-- .../components/OCT/QuestionTableFormItem.vue | 20 ++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionList.vue index 1dbb04dc..ec70327c 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionList.vue @@ -157,8 +157,8 @@ - diff --git a/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionTableFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionTableFormItem.vue index b349a9ff..e8bd5be1 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionTableFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/OCT/QuestionTableFormItem.vue @@ -107,7 +107,7 @@ - @@ -129,6 +129,12 @@ export default { return [] } }, + questions: { + type: Array, + default() { + return [] + } + }, readingTaskState: { type: Number, required: true @@ -155,6 +161,7 @@ export default { } this.$emit('setFormItemData', { key: question.Id, val: v }) } + this.resetChildValue(question, this.questions) }, resetChild(obj) { obj.forEach(i => { @@ -164,6 +171,17 @@ export default { } }) }, + resetChildValue(obj, arr) { + arr.some(item => { + if (item.ParentId === obj.Id) { + this.$emit('resetFormItemData', item.Id) + } + if (item.Childrens && item.Childrens.length > 0) { + this.resetChildValue(obj, item.Childrens) + } + return item.ParentId === obj.Id + }) + }, limitBlur(valueType, value) { if (isNaN(parseInt(value))) { value = null