|
@@ -84,20 +84,20 @@ const ExcelWriter = {
|
|
|
//rowSpan span
|
|
|
let arrayOrg = data;
|
|
|
console.log("#debug#🚀 ~ file: test.vue:42 ~ testOne2Two ~ arrayOrg:", JSON.stringify(arrayOrg));
|
|
|
- let maxRow = 0;
|
|
|
- let maxColumn = 0;
|
|
|
+ let maxRow: number = 0;
|
|
|
+ let maxColumn: number = 0;
|
|
|
arrayOrg.forEach((item) => {
|
|
|
let letters = item.poi.replace(/[^a-z]/gi, "").toUpperCase();
|
|
|
- let num = item.poi.replace(/\D/g, "");
|
|
|
- let row = columnArray.indexOf(letters);
|
|
|
+ let column: number = parseInt(item.poi.replace(/\D/g, ""));
|
|
|
+ let row: number = columnArray.indexOf(letters);
|
|
|
if (row > maxRow) {
|
|
|
maxRow = row;
|
|
|
}
|
|
|
- let column = num;
|
|
|
+
|
|
|
if (column > maxColumn) {
|
|
|
maxColumn = column;
|
|
|
}
|
|
|
- console.log("#debug#🚀 ~ file: test.vue:47 ~ arrayOrg.forEach ~ num:", num);
|
|
|
+ console.log("#debug#🚀 ~ file: test.vue:47 ~ arrayOrg.forEach ~ num:", column, maxColumn);
|
|
|
console.log("#debug#🚀 ~ file: test.vue:46 ~ testOne2Two ~ letters:", letters, columnArray.indexOf(letters));
|
|
|
});
|
|
|
let excelData = [] as any;
|