Browse Source

题目范围优化 如果超过题目 默认从初始开始

dengshaobo 3 weeks ago
parent
commit
04471bf48d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/exam/question.vue

+ 4 - 0
src/views/exam/question.vue

@@ -844,6 +844,10 @@ const GetSmartQuestionList=()=>{
             const endMax = Number(templateQuestionEnd.value) || 0;
             if (tableData.value.length > 0) {
                 queryParams.value.start = maxQuestionNo + 1;
+                if(queryParams.value.start>templateQuestionEnd.value)
+                {
+                    queryParams.value.start = templateQuestionStart.value;
+                }
                 queryParams.value.end = endMax;
             } else {
                 // 无已有试题时,回退为模板完整范围