瀏覽代碼

区分度分页会多一页bug fix

zhangjie 6 年之前
父節點
當前提交
6c3f969b6e
共有 1 個文件被更改,包括 6 次插入4 次删除
  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)