From 7c01819cedbcb8f8e907d6d63ac0061cf408a1aa Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 12 Nov 2024 10:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/customize/CustomizeQuestionFormItem.vue | 5 +++-- .../setting/reading-unit/components/QuestionFormItem.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue index 7ae2881f..72ce462d 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue @@ -414,6 +414,9 @@ export default { } catch (e) { console.log(e, v) } + if (this.question.Type === 'class') { + this.$emit("setFormItemData", { key: this.question.Id, val: v[this.question.Id], question: v }) + } this.formItemNumberChange(this.question.Id, false) } }, @@ -711,8 +714,6 @@ export default { case 13: if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) - } else { - dataArr.push(0) } num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0 break; diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionFormItem.vue b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionFormItem.vue index 28511cb6..449f5a66 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionFormItem.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionFormItem.vue @@ -467,7 +467,12 @@ export default { } catch (e) { console.log(e, v); } + if (this.question.Type === 'class') { + this.$emit("setFormItemData", { key: this.question.Id, val: v[this.question.Id], question: v }) + } + this.formItemNumberChange(this.question.Id, false); + }, }, }, @@ -636,9 +641,8 @@ export default { case 13: if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) - } else { - dataArr.push(0) } + num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc && curr) ? 1 : 0 break; case 14: