From b8b2e7e02384bb805bc35d23f7d18765eee27ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 26 Feb 2026 14:34:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[holidays]=20=EB=8C=80=EB=9F=89=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=EB=AA=A8=EB=8B=AC=EC=97=90=20=EA=B8=B0?= =?UTF-8?q?=EC=A1=B4=20=EB=93=B1=EB=A1=9D=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 해당 연도에 등록된 휴일이 있으면 기존 데이터를 텍스트 형식으로 표시 - 등록된 데이터가 없을 때만 기본 공휴일 예시 표시 --- resources/views/system/holidays/index.blade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/views/system/holidays/index.blade.php b/resources/views/system/holidays/index.blade.php index e1d606ab..75470ad6 100644 --- a/resources/views/system/holidays/index.blade.php +++ b/resources/views/system/holidays/index.blade.php @@ -258,6 +258,16 @@ function HolidayManagement() { }; const getDefaultBulkText = () => { + // 해당 연도에 등록된 데이터가 있으면 기존 데이터를 텍스트로 변환 + if (holidays.length > 0) { + const typeLabels = { public: '공휴일', company: '회사지정', alternative: '대체휴일', temporary: '임시휴일' }; + return holidays.map(h => { + const datePart = h.startDate === h.endDate ? h.startDate : `${h.startDate}~${h.endDate}`; + const typePart = h.type !== 'public' ? ` [${typeLabels[h.type] || h.type}]` : ''; + return `${datePart} ${h.name}${typePart}`; + }).join('\n'); + } + // 등록된 데이터가 없으면 기본 공휴일 예시 const y = selectedYear; return `${y}-01-01 신정 ${y}-01-28~${y}-01-30 설날연휴