wr: 하수재이용시설현황 excel 천단위 콤마

This commit is contained in:
2026-03-05 11:10:04 +09:00
parent 6504d53672
commit a71a2a147f
2 changed files with 12 additions and 5 deletions
@@ -13,7 +13,8 @@ import { btnClass } from "@/app/store/common/code";
import { prfRegPageSize } from "@/app/store/prfmncReg/pbnstPrfmncReg";
import type { customPbnst } from "@/app/store/ruseFcltMng/fcltReg/pbnstReg/type";
import type { WaterReuseFacility } from "@/app/store/ruseFcltMng/fcltSttn/pbnstSttn/type";
import { excelDownload, yearOptions } from "@/components/lib/func/commom";
import { excelDownloadNumStyle, yearOptions } from "@/components/lib/func/commom";
import { type SheetParameter } from "@common/business_components/ui";
import HeadChModal from "@/components/ui/modal/sttn/headChModal/headChModal";
import { PbnstSttnModal } from "@/components/ui/modal/sttn/pbnstSttnModal/pbnstSttnModal";
import {
@@ -103,13 +104,19 @@ export default function PbnstSttn() {
if (!isDownloadTriggered.current) {
return;
}
const sheetArray: SheetParameter[] = [{
data: pbnstSttn.excelList,
headerNum: 2,
headerRange: "A1:U2",
sheetName: 'sheet1',
startCol: 'A',
decimalArray0: [9,11,12,13,14,15,16] // 0부터 시작
}];
if (pbnstSttn.excelList.length > 0) {
excelDownload(
pbnstSttn.excelList,
excelDownloadNumStyle(
"하수재이용시설 현황",
"sample_pbnstSttn.xlsx",
"A1:U2",
3
sheetArray
);
} else {
toast.error(t("excelDownErrMsg"));
Binary file not shown.