From 02d85e19a6853cf05d9a21a91327512173283377 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 3 Mar 2026 11:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=80=89=E9=97=AE=E9=A2=98=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8A=A5=E9=94=99=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/reading/dicoms/components/Questions.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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] }