Browse Source

月报分析反馈改造

洪海涛 4 years ago
parent
commit
1a9df39ca2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/store/modules/monthlyReport/utils/index.js

+ 3 - 3
src/store/modules/monthlyReport/utils/index.js

@@ -34,7 +34,7 @@ export function setReportData(obj, line = 6) {
             setTableHeader(item.tableHeaders)
             const { newObj, peopleList } = arrToObj(item.tableRows, item.tableHeaders)
             item.tableRows = newObj
-            peopleLists = Array.from(new Set([...peopleLists, ...peopleList]))
+            peopleLists = Array.from(new Set([...peopleLists, ...peopleList])).filter(elm => elm.search(/null|\\\\/g) < 0 && elm.indexOf('\\') < 0)
           }
         })
       }
@@ -45,7 +45,7 @@ export function setReportData(obj, line = 6) {
   }
   if (newObj && newObj.children && newObj.children.length) {
     setDomInfo(newObj.children)
-    return { newObj, domKeys, peopleLists: peopleLists.filter(elm => elm.search(/null|\\\\/g) < 0) }
+    return { newObj, domKeys, peopleLists: peopleLists.filter(elm => elm.search(/null|\\\\/g) < 0 && elm.indexOf('\\') < 0) }
   }
   return {}
 }
@@ -188,7 +188,7 @@ export function analyticFeedbackToObj(obj) {
       // peopleLists = Array.from(new Set([...peopleLists, ...item.personInCharge]))
     })
   })
-  return { newObj, peopleLists: peopleLists.filter(elm => elm.search(/null|\\\\/g) < 0) }
+  return { newObj, peopleLists: peopleLists.filter(elm => elm.search(/null|\\\\/g) < 0 && elm.indexOf('\\') < 0) }
 }
 
 // 月报:elm组件数据转表格数据