|
@@ -159,7 +159,15 @@ export default {
|
|
|
* @param {Object} goodsId
|
|
|
* @param {Object} chapterExamId
|
|
|
*/
|
|
|
- doRepeat(recordId,examId,goodsId,chapterExamId=0,moduleId=0) {
|
|
|
+ async doRepeat(recordId,examId,goodsId,chapterExamId=0,moduleId=0) {
|
|
|
+ let count = await this.examRecordCount(examId);
|
|
|
+ let answerNum = await this.getExamDetail(examId);
|
|
|
+ //超过答题次数
|
|
|
+ if (answerNum > 0 && count >= answerNum) {
|
|
|
+ this.$u.toast('该试卷只能答题' + answerNum + '次!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '是否清空答案重做?',
|