Jelajahi Sumber

报告分页优化-添加强制分页属性

zhangjie 6 tahun lalu
induk
melakukan
5537ffa462

+ 7 - 4
stmms-web/src/main/webapp/static/report-pdf/css/teaching.css

@@ -29,10 +29,12 @@ body {
   font-family: "PingFang SC", Tahoma, Helvetica, Arial, sans-serif; }
 
 .font-normal {
-  font-family: "PingFang SC Regular", "Microsoft YaHei", Tahoma, Helvetica,
 Arial, sans-serif; }
+  font-family: "PingFang SC Regular", "Microsoft YaHei", Tahoma, Helvetica,
+ Arial, sans-serif; }
 
 .font-bold {
-  font-family: "PingFang SC Semibold", "Microsoft YaHei", Tahoma, Helvetica,
 Arial, sans-serif; }
+  font-family: "PingFang SC Semibold", "Microsoft YaHei", Tahoma, Helvetica,
+ Arial, sans-serif; }
 
 li {
   list-style: none; }
@@ -70,10 +72,11 @@ img {
 /* page-box */
 .page-box {
   width: 1160px;
-  height: 1641px;
+  height: 1639px;
   margin: 0 auto;
   position: relative;
-  padding: 39px 58px 70px; }
+  padding: 37px 58px 70px;
+  page-break-after: always; }
   .page-box .page-body {
     background: #fff;
     height: 1530px;

+ 0 - 2
stmms-web/src/main/webapp/static/report-pdf/js/teaching.js

@@ -376,8 +376,6 @@ function sectionArrDynamic(arrayList, sectionMaxItemLength, childrenName) {
     splitSectionArr.push(arrayList[i]);
   }
   splitArr.push(splitSectionArr);
-  console.log(splitArr);
-
   return splitArr;
 }