zhangjie 6 lat temu
rodzic
commit
a2c9d35c85

+ 11 - 4
stmms-web/src/main/webapp/static/report-pdf/js/teaching.js

@@ -200,10 +200,12 @@ function createBasicQuestion(dataList) {
 // 大题结构特征
 function createBasicMainQuestion(dataList) {
   var hTmpl = $("#basic-main-question-table").html();
-  var $dom = tmpl(hTmpl, {
-    dataList: dataList
+  sectionArr(dataList, 33).forEach(function (item) {
+    var $dom = tmpl(hTmpl, {
+      dataList: item
+    });
+    $bodyMain.append(createNewBox($dom));
   });
-  $bodyMain.append(createNewBox($dom));
 }
 // 选项分析
 function createBasicQuestionOption(data) {
@@ -433,6 +435,7 @@ function groupSectionArrDynamic(arrayList, sectionMaxItemLength) {
   var splitArr = [];
   var splitSectionItemLen = 0;
   var splitSectionArr = [];
+
   arrayList.map(function (item) {
     var groupsList = [];
     item.groups.map(function (elem) {
@@ -454,8 +457,12 @@ function groupSectionArrDynamic(arrayList, sectionMaxItemLength) {
     splitSectionArr.push({
       name: item.name,
       groups: groupsList
-    })
+    });
+
   });
+  if (splitSectionArr.length)
+    splitArr.push(splitSectionArr);
+
   return splitArr;
 }