TonyKang il y a 6 ans
Parent
commit
db227130cb
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      modules/reports/util/rpt_yanghu_data_util.js

+ 2 - 1
modules/reports/util/rpt_yanghu_data_util.js

@@ -597,7 +597,8 @@ function filterData(sourceData, handleCfg, prjData) {
         let rst = false;
         if (arr.length > 0) {
             for (let arrItem of arr) {
-                if (arrItem[key]) {
+                if (arrItem[key] !== undefined) {
+                    // 可以为null值去判断
                     rst = private_chkVal(arrItem[key], compVal, compStr);
                 }
                 if (rst) {