엑셀 만드는 소스 추가
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import type { RainStatProps } from ".";
|
||||
|
||||
export const excelRainStat = (excelList:RainStatProps[]) => {
|
||||
const excelData: string[][] = [];
|
||||
excelList.forEach((item) => {
|
||||
excelData.push([
|
||||
String(item.ctpvCd) ?? "",
|
||||
String(item.sggCd) ?? "",
|
||||
String(item.areaNm) ?? "",
|
||||
String(item.bdstNm) ?? "",
|
||||
String(item.instlCst) ?? "",
|
||||
String(item.archArea) ?? "",
|
||||
String(item.dtfcltCpct) ?? "",
|
||||
String(item.wtrUsqty) ?? "",
|
||||
String(item.anlOperCst) ?? "",
|
||||
String(item.annRnwtQty) ?? "",
|
||||
String(item.jungsudo) ?? "",
|
||||
String(item.dachae) ?? "",
|
||||
String(item.way1) ?? "",
|
||||
String(item.way2) ?? "",
|
||||
String(item.way3) ?? "",
|
||||
String(item.way4) ?? "",
|
||||
String(item.way5) ?? "",
|
||||
String(item.way6) ?? "",
|
||||
String(item.way7) ?? "",
|
||||
]);
|
||||
});
|
||||
return excelData;
|
||||
}
|
||||
Reference in New Issue
Block a user