Explorar o código

数据预处理,调整

MaiXinRong %!s(int64=4) %!d(string=hai) anos
pai
achega
6d10179577
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/lib/rpt_data_analysis.js

+ 1 - 1
app/lib/rpt_data_analysis.js

@@ -1719,7 +1719,7 @@ const treeFilter = {
             }
         }
         data[options.table] = fData.filter(x => {
-            const match = self._checkPath(matchPath, x.full_path);
+            const match = self._checkPath(matchPath, x.full_path) && (options.subType === 'leaf' ? x.is_leaf : true);
             return options.type === 'match' ? match : !match;
         });
     },