|
|
@@ -849,17 +849,20 @@ export default {
|
|
|
this.reportContents = [];
|
|
|
// <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
|
|
|
if (this.reportTarget.isHistory == '0') {
|
|
|
- for (let x = 0; x < this.reportTarget.customTaskList.length; x++) {
|
|
|
- let sfaReportCustomCollections =
|
|
|
- this.reportTarget.customTaskList[x].sfaReportCustomCollections;
|
|
|
- if (sfaReportCustomCollections) {
|
|
|
- for (let y = 0; y < sfaReportCustomCollections.length; y++) {
|
|
|
- let custom = this.shareReportConfig.filter(
|
|
|
- (val) => val.dictValue == sfaReportCustomCollections[y].reportCustomCollectionName
|
|
|
- );
|
|
|
- if (custom.length) {
|
|
|
- custom[0].content = sfaReportCustomCollections[y].answerValue;
|
|
|
- this.reportContents = this.reportContents.concat(custom);
|
|
|
+ if (this.reportTarget.customTaskList && this.reportTarget.customTaskList.length) {
|
|
|
+ for (let x = 0; x < this.reportTarget.customTaskList.length; x++) {
|
|
|
+ let sfaReportCustomCollections =
|
|
|
+ this.reportTarget.customTaskList[x].sfaReportCustomCollections;
|
|
|
+ if (sfaReportCustomCollections) {
|
|
|
+ for (let y = 0; y < sfaReportCustomCollections.length; y++) {
|
|
|
+ let custom = this.shareReportConfig.filter(
|
|
|
+ (val) =>
|
|
|
+ val.dictValue == sfaReportCustomCollections[y].reportCustomCollectionName
|
|
|
+ );
|
|
|
+ if (custom.length) {
|
|
|
+ custom[0].content = sfaReportCustomCollections[y].answerValue;
|
|
|
+ this.reportContents = this.reportContents.concat(custom);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|