fix: report in monalisa laporan kpi

This commit is contained in:
kur0nek-o
2024-04-15 10:00:54 +07:00
parent 807ac7dba4
commit 9e654bb2c5
17 changed files with 24 additions and 43 deletions

View File

@@ -41,7 +41,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
<div class="Section1">
`
var tbody = ``
for (let index = 0; index < 5; index++) {
for (let index = 0; index < rawData.length; index++) {
const element = rawData[index]
var column = `<tr>`
let styleTotal = ''
@@ -53,7 +53,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
styleTotal = 'style="background-color: #c0c0c0; font-weight: bold;"'
}
i === 0
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content}</td>`)
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content || content}</td>`)
: (column += `<td ${styleTotal}>${content}</td>`)
}
column += `</tr>`

View File

@@ -41,7 +41,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
<div class="Section1">
`
var tbody = ``
for (let index = 0; index < 5; index++) {
for (let index = 0; index < rawData.length; index++) {
const element = rawData[index]
var column = `<tr>`
let styleTotal = ''
@@ -53,7 +53,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
styleTotal = 'style="background-color: #c0c0c0; font-weight: bold;"'
}
i === 0
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content}</td>`)
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content || content}</td>`)
: (column += `<td ${styleTotal}>${content}</td>`)
}
column += `</tr>`

View File

@@ -41,7 +41,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
<div class="Section1">
`
var tbody = ``
for (let index = 0; index < 5; index++) {
for (let index = 0; index < rawData.length; index++) {
const element = rawData[index]
var column = `<tr>`
let styleTotal = ''
@@ -53,7 +53,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
styleTotal = 'style="background-color: #c0c0c0; font-weight: bold;"'
}
i === 0
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content}</td>`)
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content || content}</td>`)
: (column += `<td ${styleTotal}>${content}</td>`)
}
column += `</tr>`

View File

@@ -41,7 +41,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
<div class="Section1">
`
var tbody = ``
for (let index = 0; index < 5; index++) {
for (let index = 0; index < rawData.length; index++) {
const element = rawData[index]
var column = `<tr>`
let styleTotal = ''
@@ -53,7 +53,7 @@ const exportToWord = (reportMeta: any, rawData: any, filename: any, periode: any
styleTotal = 'style="background-color: #c0c0c0; font-weight: bold;"'
}
i === 0
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content}</td>`)
? (column += `<td ${styleTotal} ${colSpan} align="left">${content.content || content}</td>`)
: (column += `<td ${styleTotal}>${content}</td>`)
}
column += `</tr>`