Bläddra i källkod

区分度分页会多一页bug fix

zhangjie 6 år sedan
förälder
incheckning
6c3f969b6e
1 ändrade filer med 6 tillägg och 4 borttagningar
  1. 6 4
      stmms-web/src/main/webapp/static/report-pdf/js/teaching.js

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

@@ -455,10 +455,12 @@ function groupSectionArrDynamic(arrayList, sectionMaxItemLength) {
       }
 
     });
-    splitSectionArr.push({
-      name: item.name,
-      groups: groupsList
-    });
+
+    if (groupsList.length)
+      splitSectionArr.push({
+        name: item.name,
+        groups: groupsList
+      });
 
   });
   if (splitSectionArr.length)