From 237e3eed60b8d255d6e245dff2aa19bd0d9bd9f3 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 11 Nov 2024 16:34:38 +0800 Subject: [PATCH] 1 --- .../reading/dicoms/customize/CustomizeQuestionFormItem.vue | 2 +- .../setting/reading-unit/components/QuestionFormItem.vue | 2 +- 2 files changed, 2 insertions(+), 2 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 60026f17..7ae2881f 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue @@ -720,7 +720,7 @@ export default { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) } - num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) > 0 ? 1 : 0; + num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 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 5499b4e7..28511cb6 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 @@ -645,7 +645,7 @@ export default { if (!isNaN(parseFloat(this.questionForm[o.TableQuestionId]))) { dataArr.push(parseFloat(this.questionForm[o.TableQuestionId])) } - num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) > 0 ? 1 : 0; + num = dataArr.length === 0 ? 0 : dataArr.reduce((acc, curr) => acc || curr, 0) ? 1 : 0; break; } }