提交 71a9d294 authored 作者: lihuihui's avatar lihuihui

bug修改

上级 709042f5
...@@ -4,5 +4,5 @@ export default class Exam extends BaseAPI { ...@@ -4,5 +4,5 @@ export default class Exam extends BaseAPI {
getPower = (obj, url) => this.post(url, obj, { headers: { 'Content-Type': 'multipart/form-data' } }) getPower = (obj, url) => this.post(url, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
examSubmit = (obj, url) => this.post(url, obj, { headers: { 'Content-Type': 'multipart/form-data' } }) examSubmit = (obj, url) => this.post(url, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
deleteCollect = (obj) => this.post('/zy/v2/examination/delete-my-question', obj, { headers: { 'Content-Type': 'multipart/form-data' } }) deleteCollect = (obj) => this.post('/zy/v2/examination/delete-my-question', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
collectQuestion = (obj) => this.post('/zy/v2/examination/question/add', obj, { headers: { 'Content-Type': 'multipart/form-data' } }) collectQuestion = (obj) => this.post('/zy/v2/examination/add-collection', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
} }
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="type" v-if="item.type == 2">多选题</div> <div class="type" v-if="item.type == 2">多选题</div>
<div class="type" v-if="item.type == 5">案例题</div> <div class="type" v-if="item.type == 5">案例题</div>
<div class="type" v-if="item.type == 6">判断题</div> <div class="type" v-if="item.type == 6">判断题</div>
<div class="count">{{ dItem.num }}/{{ questionsData.sheet.question_count }}</div> <div class="count">{{ $route.query.id == -1 ? errPageOrder : dItem.num }}/{{ questionsData.sheet.question_count }}</div>
</div> </div>
<div class="topic-bt" v-if="item.type == '5'" v-html="dItem.common_content"></div> <div class="topic-bt" v-if="item.type == '5'" v-html="dItem.common_content"></div>
<div class="topic" v-html="dItem.question_content"> <div class="topic" v-html="dItem.question_content">
...@@ -210,6 +210,7 @@ export default { ...@@ -210,6 +210,7 @@ export default {
data () { data () {
const _this = this const _this = this
return { return {
errPageOrder: 1,
countPage: { countPage: {
currentPage: 1, currentPage: 1,
showQuestionNum: 10, showQuestionNum: 10,
...@@ -265,6 +266,7 @@ export default { ...@@ -265,6 +266,7 @@ export default {
dataNum && (_this.currentNum = parseInt(dataNum.nodeValue)) dataNum && (_this.currentNum = parseInt(dataNum.nodeValue))
_this.currentNum === _this.questionsData.sheet.question_count ? _this.nextBtnShow = false : _this.nextBtnShow = true _this.currentNum === _this.questionsData.sheet.question_count ? _this.nextBtnShow = false : _this.nextBtnShow = true
dataNum && (_this.requestData.answerPage = parseInt(dataNum.nodeValue)) dataNum && (_this.requestData.answerPage = parseInt(dataNum.nodeValue))
_this.errPageOrder = this.activeIndex + 1
}, },
slidePrevTransitionEnd: function() { slidePrevTransitionEnd: function() {
if (this.activeIndex === this.slides.length - 2) { if (this.activeIndex === this.slides.length - 2) {
......
...@@ -104,9 +104,7 @@ export default { ...@@ -104,9 +104,7 @@ export default {
} }
}) })
if (window.localStorage.isExamEnd === 'true') { if (window.localStorage.isExamEnd === 'true') {
if (this.$store.state.isVip) { this.abilityExam()
this.abilityExam()
}
} }
}, },
methods: { methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论