|
|
@@ -196,8 +196,8 @@ export default {
|
|
|
title: k,
|
|
|
header:reportDataDTO[k]?.header || this.getTableHeader(reportDataDTO[k]?.list) || '',
|
|
|
hideHeader: this.$utils.isEmpty(reportDataDTO[k]?.header),
|
|
|
- list: reportDataDTO[k].list,
|
|
|
- note: reportDataDTO[k].note
|
|
|
+ list: reportDataDTO[k]?.list,
|
|
|
+ note: reportDataDTO[k]?.note
|
|
|
}))
|
|
|
.sort((a, b) => a.title.localeCompare(b.title))
|
|
|
: []
|
|
|
@@ -205,10 +205,10 @@ export default {
|
|
|
? Object.keys(chartDataDTO)
|
|
|
.map((k) => ({
|
|
|
title: k,
|
|
|
- id: chartDataDTO[k].name + this.pdf,
|
|
|
- data: chartDataDTO[k].data,
|
|
|
- note: chartDataDTO[k].note,
|
|
|
- option: chartDataDTO[k].option
|
|
|
+ id: chartDataDTO[k]?.name + this.pdf,
|
|
|
+ data: chartDataDTO[k]?.data,
|
|
|
+ note: chartDataDTO[k]?.note,
|
|
|
+ option: chartDataDTO[k]?.option
|
|
|
}))
|
|
|
.sort((a, b) => a.title.localeCompare(b.title))
|
|
|
: []
|