refactor
This commit is contained in:
10
src/utils.js
10
src/utils.js
@@ -465,4 +465,12 @@ function columnToLetter(columnIndex) {
|
||||
columnIndex = Math.floor((columnIndex - 1) / 26);
|
||||
}
|
||||
return letter;
|
||||
}
|
||||
}
|
||||
|
||||
function fillApproveArea(baseCells, worksheet, record) {
|
||||
const signLabels = ['園長', '主幹', '指導', '担任'];
|
||||
const signRow = baseCells['園長'][0].row + 1;
|
||||
for (let i = 0; i < signLabels.length; i++) {
|
||||
worksheet.getCell(signRow, baseCells['園長'][0].col + i).value = (record[signLabels[i]]?.value || '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user