我得到第一行的数据后,我想在json文件中有一个新行,以获取第二行的数据......
columns: payrollRows,
generateRows(payrolls){
var payrollRows = [];
for(let payroll of payrolls){
var wageTypeId = {
text: `${payroll.wageTypeId}`,
fontSize: 10,
width: 50,
alignment: 'left',
margin:[0,10,0,0]
}
var description = {
text: `${payroll.wageType.description}`,
fontSize: 10,
width: 50,
margin:[0,10,0,0]
}
payrollRows.push(wageTypeId);
payrollRows.push(description);