提交 91d47b8b authored 作者: lihuihui's avatar lihuihui

updata

上级 3674f963
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
import card from '../components/answerCard.vue' import card from '../components/answerCard.vue'
// import answer from '../components/answer.vue' // import answer from '../components/answer.vue'
import examEnd from '../components/examEnd.vue' import examEnd from '../components/examEnd.vue'
import { Toast, Dialog } from 'vant' import { Toast } from 'vant'
import Exam from '../action' import Exam from '../action'
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper' import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
import 'swiper/css/swiper.css' import 'swiper/css/swiper.css'
...@@ -114,8 +114,7 @@ export default { ...@@ -114,8 +114,7 @@ export default {
SwiperSlide, SwiperSlide,
card, card,
examEnd, examEnd,
[Toast.name]: Toast, [Toast.name]: Toast
[Dialog.name]: Dialog
}, },
directives: { directives: {
swiper: directive swiper: directive
...@@ -580,16 +579,9 @@ export default { ...@@ -580,16 +579,9 @@ export default {
goExamResult(n) { goExamResult(n) {
const param = this.requestParam const param = this.requestParam
param.is_create = 0 param.is_create = 0
Dialog.alert({
title: '标题',
message: this.requestParam
}).then(() => {
// on close
})
this.$emit('goExamResult', this.requestParam) this.$emit('goExamResult', this.requestParam)
}, },
examSubmit(status, isSub) { examSubmit(status, isSub) {
Toast(111)
const reqData = this.requestData const reqData = this.requestData
const param = { const param = {
sheet_id: this.questionsData.sheet.id, sheet_id: this.questionsData.sheet.id,
...@@ -600,12 +592,6 @@ export default { ...@@ -600,12 +592,6 @@ export default {
param.status = status param.status = status
Exam.examSubmit(param, this.requestParam.papersUrl).then(res => { Exam.examSubmit(param, this.requestParam.papersUrl).then(res => {
if (res.exm_status === 1) { if (res.exm_status === 1) {
Dialog.alert({
title: '标题',
message: JSON.stringify(res)
}).then(() => {
// on close
})
clearInterval(this.initTime) clearInterval(this.initTime)
clearInterval(this.clockCount) clearInterval(this.clockCount)
if (this.requestParam.course_id !== undefined || this.requestParam.tag_id !== undefined || this.questionsData.sheet.remainingTime > 0) { if (this.requestParam.course_id !== undefined || this.requestParam.tag_id !== undefined || this.questionsData.sheet.remainingTime > 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论