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: