提交 91350b2e authored 作者: lihuihui's avatar lihuihui
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</template> </template>
<div class="answer-item" v-if="data.question_analysis"> <div class="answer-item" v-if="data.question_analysis">
<div class="answer-item-label">解析:</div> <div class="answer-item-label">解析:</div>
<div class="answer-item-content">{{ data.question_analysis }}</div> <div class="answer-item-content" v-html="data.question_analysis"></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -194,4 +194,11 @@ export default { ...@@ -194,4 +194,11 @@ export default {
color: #222; color: #222;
line-height: 25px; line-height: 25px;
} }
.answer-item-label {
white-space: nowrap;
}
.answer-item-content {
flex: 1;
overflow: hidden;
}
</style> </style>
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
if (item.status === 0 || item.status === 3) { if (item.status === 0 || item.status === 3) {
this.open(item) this.open(item)
} else { } else {
this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 1 } }) this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 0 } })
} }
}, },
open(item) { open(item) {
...@@ -49,13 +49,16 @@ export default { ...@@ -49,13 +49,16 @@ export default {
message: '您上次未做完试题', message: '您上次未做完试题',
showCancelButton: true, showCancelButton: true,
confirmButtonText: '继续答题', confirmButtonText: '继续答题',
cancelButtonText: '重新答题' cancelButtonText: '重新答题',
distinguishCancelAndClose: true
}) })
.then(() => { .then(() => {
this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 0 } }) this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 0 } })
}) })
.catch(() => { .catch(action => {
if (action === 'cancel') {
this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 1 } }) this.$router.push({ path: '/testExam/exam', query: { exam_id: item.id, is_create: 1 } })
}
}) })
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论