MaiXinRong пре 5 година
родитељ
комит
bf3d8e483a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/lib/rpt_data_analysis.js

+ 2 - 1
app/lib/rpt_data_analysis.js

@@ -253,6 +253,7 @@ const gatherChapter = {
             const cc = { code: c.code, name: c.name, cType: 1 };
             cc.serialNo = serialNo++;
             cc.filter = '^' + c.code.substr(0, c.code.length - 2) + '[0-9]{2}-';
+            //cc.visible = true;
             gclChapter.push(cc);
 
             if (options.activeFields) {
@@ -467,7 +468,7 @@ const gatherChapter = {
                 }
                 return false;
             } else {
-                return x.visible !== undefined || x.visible !== null ? x.visible : true;
+                return (x.visible !== undefined && x.visible !== null) ? x.visible : true;
             }
         });
     },