提交 30c04328 编写于 作者: guangjun.yang's avatar guangjun.yang

提交问题

上级 1916439c
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<span class="content">查看病理,了解病史</span> <span class="content">查看病理,了解病史</span>
</div>--> </div>-->
</article> </article>
<article class="c-btn-wrapper" v-show="currentQuestion.typeId == 2" @click="commitAnswer(true)"> <article class="c-btn-wrapper" v-show="currentQuestion.typeId == 2 && !currentQuestion.commitFlag" @click="commitAnswer(true)">
<van-button size="large" round color="#449284">确 认</van-button> <van-button size="large" round color="#449284">确 认</van-button>
</article> </article>
<article class="answer-wrapper" v-show="currentQuestion.isAnalyzed"> <article class="answer-wrapper" v-show="currentQuestion.isAnalyzed">
...@@ -141,7 +141,6 @@ export default { ...@@ -141,7 +141,6 @@ export default {
// 提交答案 // 提交答案
commitAnswer(isMulti) { commitAnswer(isMulti) {
if(this.currentQuestion.commitFlag) return;
let params = { let params = {
commitKind: this.commonConfig.commitKind, // 答题来源 1:错题集 2:收藏 3:题库 commitKind: this.commonConfig.commitKind, // 答题来源 1:错题集 2:收藏 3:题库
directoryId: this.currentQuestion.directoryId, // 题库ID directoryId: this.currentQuestion.directoryId, // 题库ID
......
...@@ -85,6 +85,9 @@ export default { ...@@ -85,6 +85,9 @@ export default {
// 解析 // 解析
toggleAnalysis() { toggleAnalysis() {
this.currentQuestion.isAnalyzed = true; this.currentQuestion.isAnalyzed = true;
// if() {
// }
this.$parent.refs['questionContentRef'] && this.$parent.refs['questionContentRef'].commitAnswer(this.currentQuestion.typeId == 2); this.$parent.refs['questionContentRef'] && this.$parent.refs['questionContentRef'].commitAnswer(this.currentQuestion.typeId == 2);
// this.$store.commit('SET_CURRENT_QUESTION', this.currentQuestion); // this.$store.commit('SET_CURRENT_QUESTION', this.currentQuestion);
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册