提交 506dee41 authored 作者: lihuihui's avatar lihuihui

update

上级 3bd7568f
...@@ -206,7 +206,8 @@ export default { ...@@ -206,7 +206,8 @@ export default {
examination_id: this.examination_id, examination_id: this.examination_id,
chapter_id: this.chapter_id, chapter_id: this.chapter_id,
question_id: row.id, question_id: row.id,
type: this.type type: this.type,
class_id: this.classValue
} }
}) })
}, },
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
computed: { computed: {
questionType() { questionType() {
// (1:单选题,2:多选题,3:问答题,5:案例题,6:判断题,7:实操题,8:情景题) // (1:单选题,2:多选题,3:问答题,5:案例题,6:判断题,7:实操题,8:情景题)
const questionType = parseInt(this.question.question_type) const questionType = parseInt(this.data.question_type)
const { answer_count: answerCount = 0 } = this.data const { answer_count: answerCount = 0 } = this.data
if ([5, 7, 8].includes(questionType)) { if ([5, 7, 8].includes(questionType)) {
if (answerCount >= 2) { if (answerCount >= 2) {
...@@ -143,7 +143,6 @@ export default { ...@@ -143,7 +143,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.data, '=12data')
} }
} }
</script> </script>
......
...@@ -64,6 +64,7 @@ export default { ...@@ -64,6 +64,7 @@ export default {
if (this.data.answers[qParentId]) { if (this.data.answers[qParentId]) {
userAnswerData = this.data.answers[qParentId][cItem.id] || {} userAnswerData = this.data.answers[qParentId][cItem.id] || {}
} }
cItem.question_type = cur.question_type
return { ...cItem, userScoreData, userAnswerData } return { ...cItem, userScoreData, userAnswerData }
}) })
}) })
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
}, },
getTopic() { getTopic() {
const query = this.$route.query const query = this.$route.query
const params = { type: query.type, course_id: query.course_id, examination_id: query.examination_id, chapter_id: query.chapter_id, question_id: query.question_id } const params = { class_id: query.class_id, type: query.type, course_id: query.course_id, examination_id: query.examination_id, chapter_id: query.chapter_id, question_id: query.question_id }
api.getQuestionsDetails(params).then(response => { api.getQuestionsDetails(params).then(response => {
const data = response.data const data = response.data
data.options.map((item, index) => { data.options.map((item, index) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论