소스 검색

区分度分页会多一页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)