Browse Source

code sync

TonyKang 5 years atrás
parent
commit
f15695adc2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/reports/rpt_component/jpc_flow_tab.js

+ 2 - 1
modules/reports/rpt_component/jpc_flow_tab.js

@@ -295,7 +295,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
                 }
                 for (let di = 0; di < segDataIdx.length; di++) {
                     let hasDiff = false;
-                    if (di > 1) {
+                    if (di >= 1) {
                         for (let i = 0; i < me.group_check_fields.length; i++) {
                             let grp_field = JE.F(me.group_check_fields[i][JV.PROP_FIELD_ID], $CURRENT_RPT);
                             if (grp_field) {
@@ -706,6 +706,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
                             pageStatus[JV.STATUS_SEGMENT_END] = true;
                             pageStatus[JV.STATUS_REPORT_END] = (segIdx === me.segments.length - 1);
                             private_addPage(segIdx, grpSeqInfo, false, false, -1);
+                            pageStatus[JV.STATUS_SEGMENT_END] = false; // 加完章统计页后,记得把章尾页设置为false
                         } else {
                             private_addPage(segIdx, grpSeqInfo, false, false, -1);
                         }