提交 480e8104 authored 作者: lihuihui's avatar lihuihui

updata

上级 03072dbd
...@@ -360,6 +360,7 @@ export default { ...@@ -360,6 +360,7 @@ export default {
} else { } else {
this.questionsData = res this.questionsData = res
} }
window.localStorage.userId = res.user_id
this.remainingTime = this.secondToDate(times) this.remainingTime = this.secondToDate(times)
this.setClock(times) this.setClock(times)
if (res.sheet.status === 1 || res.sheet.status === 2) { if (res.sheet.status === 1 || res.sheet.status === 2) {
...@@ -427,7 +428,8 @@ export default { ...@@ -427,7 +428,8 @@ export default {
const param = { const param = {
sheet_id: this.questionsData.sheet.id, sheet_id: this.questionsData.sheet.id,
answers: JSON.stringify(reqData), answers: JSON.stringify(reqData),
duration: this.questionsData.sheet.duration duration: this.questionsData.sheet.duration,
user_id: window.localStorage.userId
} }
param.status = status param.status = status
Exam.examSubmit(param, this.requestParam.papersUrl).then(res => { Exam.examSubmit(param, this.requestParam.papersUrl).then(res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论