|
@@ -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组件数据转表格数据
|