diff --git a/src/components/testPaperDetail/index.vue b/src/components/testPaperDetail/index.vue index 836ddef..9fca11f 100644 --- a/src/components/testPaperDetail/index.vue +++ b/src/components/testPaperDetail/index.vue @@ -133,6 +133,7 @@ export default { } } n.answer = answer.join(',') + n.questionStem = n.questionStem.replace(/\(\)\(\)\(\)/g,`______`) } }) } diff --git a/src/pages/achievement/list/wrongBook.vue b/src/pages/achievement/list/wrongBook.vue index bb10697..181ee3a 100644 --- a/src/pages/achievement/list/wrongBook.vue +++ b/src/pages/achievement/list/wrongBook.vue @@ -81,7 +81,7 @@

-
+

选项:

{{i}}.{{quesInfo.options[i]}}

@@ -234,6 +234,14 @@ export default { options[i.replace('option','')] = info[i] } } + if(info.name == '填空题'){ + let answer = [] + for(let i in info){ + if(i.includes('option') && info[i]) answer.push(info[i]) + } + info.answer = answer.join(',') + info.questionStem = info.questionStem.replace(/\(\)\(\)\(\)/g,`______`) + } info.options = options this.quesInfo = info }).catch(err => {}) diff --git a/src/pages/assessment/detail/index.vue b/src/pages/assessment/detail/index.vue index bfe6d36..b9124ad 100644 --- a/src/pages/assessment/detail/index.vue +++ b/src/pages/assessment/detail/index.vue @@ -193,6 +193,7 @@ export default { if(n.typeName == '填空题'){ n.answer = answer.join(',') n.user_answer = n.user_answer ? n.user_answer.split('<>').filter(n => n).join(',') : '' + n.question_stem = n.question_stem.replace(/\(\)\(\)\(\)/g,`______`) } n.options = options } diff --git a/src/pages/assessment/doReview/index.vue b/src/pages/assessment/doReview/index.vue index af0e762..d58e96e 100644 --- a/src/pages/assessment/doReview/index.vue +++ b/src/pages/assessment/doReview/index.vue @@ -187,6 +187,7 @@ export default { if(n.typeName == '填空题'){ n.answer = answer.join(',') n.user_answer = n.user_answer ? n.user_answer.split('<>').filter(n => n).join(',') : '' + n.question_stem = n.question_stem.replace(/\(\)\(\)\(\)/g,`______`) } n.options = options } diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 66864ed..9792a1d 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -48,7 +48,7 @@ - + - + - +