|
@@ -1532,6 +1532,9 @@ export default {
|
|
|
return this.$api.bankExam(this.id).then((res) => {
|
|
|
this.bankType = res.data.data.doType;
|
|
|
this.examData = res.data.data;
|
|
|
+ this.allTimes = this.examData.answerTime * 60;
|
|
|
+ this.lastTime =
|
|
|
+ this.examData.answerTime && this.examData.answerTime * 60;
|
|
|
if (this.bankType == 2) {
|
|
|
this.needBack = true;
|
|
|
}
|
|
@@ -1748,7 +1751,7 @@ export default {
|
|
|
from: 2,
|
|
|
}).then(async (res) => {
|
|
|
if (res.data.code == 500) {
|
|
|
- return this.noListTip('你已完成所有题目')
|
|
|
+ return this.noListTip("你已完成所有题目");
|
|
|
}
|
|
|
let data = res.data.data;
|
|
|
if (this.doMode == 3) {
|
|
@@ -1756,11 +1759,8 @@ export default {
|
|
|
data = data.questionList;
|
|
|
}
|
|
|
if (!data.length) {
|
|
|
- return this.noListTip()
|
|
|
+ return this.noListTip();
|
|
|
}
|
|
|
- this.allTimes = data[0].answerTime * 60;
|
|
|
- this.lastTime = data[0].answerTime && data[0].answerTime * 60;
|
|
|
-
|
|
|
data.forEach((item, index) => {
|
|
|
if (typeof item.jsonStr == "string") {
|
|
|
item.jsonStr = JSON.parse(item.jsonStr);
|
|
@@ -2264,7 +2264,7 @@ export default {
|
|
|
type: this.examType,
|
|
|
examTime: parseInt(this.allTimes),
|
|
|
doTime: parseInt(this.allTimes) - parseInt(this.lastTime),
|
|
|
- ...form
|
|
|
+ ...form,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.isSubmit = true;
|