diff --git a/src/store/modules/reading.js b/src/store/modules/reading.js index 053b9d0f..b61c175b 100644 --- a/src/store/modules/reading.js +++ b/src/store/modules/reading.js @@ -40,6 +40,13 @@ function getQuestions(questions) { const criterionType = parseInt(localStorage.getItem('CriterionType')) questions.forEach(item => { if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) { + item.TableQuestions.Questions.forEach(question => { + if (question.Type === 'select' && question.OptionTypeEnum === 1) { + item.TableQuestions.Answers.forEach((answer) => { + answer[question.Id] = answer[question.Id] ? JSON.parse(answer[question.Id]) : [] + }) + } + }) item.TableQuestions.Answers.forEach(answerObj => { answerObj.isDicomReading = answerObj.IsDicomReading === 'True' diff --git a/src/views/dictionary/template/components/CriterionQuestionForm.vue b/src/views/dictionary/template/components/CriterionQuestionForm.vue index 52b5f545..425f1166 100644 --- a/src/views/dictionary/template/components/CriterionQuestionForm.vue +++ b/src/views/dictionary/template/components/CriterionQuestionForm.vue @@ -1,251 +1,143 @@