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

updata

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