diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue index 571fdccd..04f2b61d 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue @@ -179,7 +179,9 @@ export default { v.IsBaseLineTask = this.isBaseLineTask if (v.Type === 'group' && v.GroupClassify !== this.groupClassify) continue if (!v.IsPage && v.Type !== 'group' && v.Type !== 'summary' && i.Id) { - this.$set(this.questionForm, v.Id, v.Answer ? v.Answer : null) + const answer = v.Type === 'select' && v.OptionTypeEnum === 1 && v.Answer ? JSON.parse(v.Answer) : v.Answer + this.$set(this.questionForm, v.Id, answer ? answer : null) + // this.$set(this.questionForm, v.Id, v.Answer ? v.Answer : null) if (v.QuestionType === 44) { // 影像质量评估 this.imageQualityId = v.Id @@ -232,7 +234,8 @@ export default { obj.forEach(i => { i.IsBaseLineTask = this.isBaseLineTask if (i.Type !== 'group' && i.Type !== 'summary' && i.Id) { - this.$set(this.questionForm, i.Id, i.Answer ? i.Answer : null) + const answer = i.Type === 'select' && i.OptionTypeEnum === 1 && i.Answer ? JSON.parse(i.Answer) : i.Answer + this.$set(this.questionForm, i.Id, answer ? answer : null) if (i.QuestionType === 44) { // 影响质量评估 this.imageQualityId = i.Id @@ -343,7 +346,7 @@ export default { var answers = [] var imageQuality = null for (const k in this.questionForm) { - answers.push({ id: k, answer: this.questionForm[k] }) + answers.push({ id: k, answer: Array.isArray(this.questionForm[k]) ? JSON.stringify(this.questionForm[k]) : this.questionForm[k] }) if (k === this.imageQualityId) { imageQuality = this.questionForm[k] }