提交 b5b8b447 authored 作者: 王鹏飞's avatar 王鹏飞

Merge branch 'vite'

...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
clearInterval(this.cacheAnswerTime) clearInterval(this.cacheAnswerTime)
this.cacheAnswerTime = setInterval(() => { this.cacheAnswerTime = setInterval(() => {
this.submitExam(0) this.submitExam(0)
}, 3000) }, 15000)
} else { } else {
this.status = 2 this.status = 2
this.hasMark = false this.hasMark = false
......
...@@ -21,7 +21,8 @@ export default { ...@@ -21,7 +21,8 @@ export default {
status: 1, // 考试状态 status: 1, // 考试状态
hasMark: true, hasMark: true,
data: {}, data: {},
cacheAnswerTime: null cacheAnswerTime: null,
countTime: 0
} }
}, },
beforeMount() { beforeMount() {
...@@ -52,7 +53,7 @@ export default { ...@@ -52,7 +53,7 @@ export default {
this.hasMark = false this.hasMark = false
} else { } else {
clearInterval(this.cacheAnswerTime) clearInterval(this.cacheAnswerTime)
this.cacheAnswerTime = setInterval(this.handleCache, 3000) this.cacheAnswerTime = setInterval(this.handleCache, 15000)
} }
}) })
}, },
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
}, },
// 缓存答案 // 缓存答案
handleCache() { handleCache() {
this.countTime += 3
const refData = this.$refs.exam const refData = this.$refs.exam
const params = this.genSubmitData(refData.questionGroups).params const params = this.genSubmitData(refData.questionGroups).params
params.status = 0 params.status = 0
...@@ -112,7 +114,7 @@ export default { ...@@ -112,7 +114,7 @@ export default {
}) })
}) })
const data = { const data = {
params: { type: 1, sheet_id: this.data.id, status: 0, answers: JSON.stringify(answers), duration: 0 }, params: { type: 1, sheet_id: this.data.id, status: 0, answers: JSON.stringify(answers), duration: this.countTime },
answerNum: answerNum answerNum: answerNum
} }
return data return data
......
...@@ -69,8 +69,6 @@ export default { ...@@ -69,8 +69,6 @@ export default {
methods: { methods: {
scoreRow(row, index) { scoreRow(row, index) {
console.log(row, 'fjgdj')
console.log(this.pass_count)
if (row.row.total_average < this.pass_score) { if (row.row.total_average < this.pass_score) {
return 'warning-row' return 'warning-row'
} else { } else {
......
...@@ -11,21 +11,21 @@ ...@@ -11,21 +11,21 @@
<el-col :span="8"> <el-col :span="8">
<div class="title">最早交卷</div> <div class="title">最早交卷</div>
<div> <div>
<span class="num">{{ $route.query.type == 'chapter' ? '-' : dataInfo.submit_info.first }}</span <span class="num">{{ dataInfo.submit_info.first || '-' }}</span
><span class="fen">分钟</span> ><span class="fen">分钟</span>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="title">最迟交卷</div> <div class="title">最迟交卷</div>
<div> <div>
<span class="num">{{ $route.query.type == 'chapter' ? '-' : dataInfo.submit_info.last }}</span <span class="num">{{ dataInfo.submit_info.last || '-' }}</span
><span class="fen">分钟</span> ><span class="fen">分钟</span>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="title" style="white-space: nowrap">平均交卷时长</div> <div class="title" style="white-space: nowrap">平均交卷时长</div>
<div> <div>
<span class="num">{{ $route.query.type == 'chapter' ? '-' : dataInfo.submit_info.average }}</span <span class="num">{{ dataInfo.submit_info.average || '-' }}</span
><span class="fen">分钟</span> ><span class="fen">分钟</span>
</div> </div>
</el-col> </el-col>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="title-type">{{ questionTypeText[data.question_type] }}</div> <div class="title-type">{{ questionTypeText[data.question_type] }}</div>
<template v-for="pItem in data.list"> <template v-for="pItem in data.list">
<question-list-item <question-list-item
v-for="(item, indexs) in pItem" v-for="item in pItem"
:data="item" :data="item"
:question="data" :question="data"
:key="item.id" :key="item.id"
......
...@@ -58,12 +58,9 @@ export default { ...@@ -58,12 +58,9 @@ export default {
} }
} }
}, },
mounted() {
console.log(this.paramList, '----')
},
methods: { methods: {
handleResCount(val) { handleResCount(val) {
console.log(val, '---val')
this.count = val this.count = val
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论