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;
             }
         });
     },