Fix: 修正Excel公式
This commit is contained in:
@ -382,12 +382,12 @@
|
|||||||
worksheet.getCell('F4').style = parameterStyle
|
worksheet.getCell('F4').style = parameterStyle
|
||||||
// 所有记录中最小角度
|
// 所有记录中最小角度
|
||||||
worksheet.getCell('G4').value = {
|
worksheet.getCell('G4').value = {
|
||||||
formula: `MIN(D9: D${recordList.value.length + 8})`,
|
formula: `MIN(D9:D${8 + recordList.value.length})`,
|
||||||
}
|
}
|
||||||
worksheet.getCell('G4').style = valueStyle
|
worksheet.getCell('G4').style = valueStyle
|
||||||
// 所有记录中最大角度
|
// 所有记录中最大角度
|
||||||
worksheet.getCell('H4').value = {
|
worksheet.getCell('H4').value = {
|
||||||
formula: `MAX(D9: D${recordList.value.length + 8})`,
|
formula: `MAX(D9:D${8 + recordList.value.length})`,
|
||||||
}
|
}
|
||||||
worksheet.getCell('H4').style = valueStyle
|
worksheet.getCell('H4').style = valueStyle
|
||||||
|
|
||||||
@ -423,8 +423,6 @@
|
|||||||
for (const [index, column] of worksheet.columns.entries()) {
|
for (const [index, column] of worksheet.columns.entries()) {
|
||||||
let maxLength = 0
|
let maxLength = 0
|
||||||
|
|
||||||
const columnLetter = String.fromCodePoint(65 + index)
|
|
||||||
|
|
||||||
if (column && typeof column.eachCell === 'function') {
|
if (column && typeof column.eachCell === 'function') {
|
||||||
column.eachCell({ includeEmpty: true }, cell => {
|
column.eachCell({ includeEmpty: true }, cell => {
|
||||||
const cellValue = cell.value ? String(cell.value) : ''
|
const cellValue = cell.value ? String(cell.value) : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user