카카오톡 인앱 WebView는 서브도메인 간 쿠키를 공유하지 않아 tkds에서 로그인 후 tkfb로 리다이렉트 시 인증이 풀리는 문제. - sso-relay.js: URL hash의 _sso= 토큰을 로컬 쿠키+localStorage로 설정 - gateway dashboard: 로그인 후 redirect URL에 #_sso=<token> 추가 - 전 서비스 HTML: core JS 직전에 sso-relay.js 로드 (81개 파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
114 lines
5.4 KiB
HTML
114 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>월간 근무 확인 - TK 공장관리</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script>tailwind.config = { corePlugins: { preflight: false } }</script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="/static/css/tkfb.css?v=2026040103">
|
|
<link rel="stylesheet" href="/css/my-monthly-confirm.css?v=2026040106">
|
|
</head>
|
|
<body class="bg-gray-50">
|
|
<header class="bg-orange-700 text-white sticky top-0 z-50">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div class="flex justify-between items-center h-14">
|
|
<div class="flex items-center gap-3">
|
|
<button id="mobileMenuBtn" class="lg:hidden text-orange-200 hover:text-white"><i class="fas fa-bars text-xl"></i></button>
|
|
<i class="fas fa-industry text-xl text-orange-200"></i>
|
|
<h1 class="text-lg font-semibold">TK 공장관리</h1>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<span id="headerUserName" class="text-sm hidden sm:block">-</span>
|
|
<div id="headerUserAvatar" class="w-8 h-8 bg-orange-600 rounded-full flex items-center justify-center text-sm font-bold">-</div>
|
|
<button onclick="doLogout()" class="text-orange-200 hover:text-white" title="로그아웃"><i class="fas fa-sign-out-alt"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div id="mobileOverlay" class="hidden fixed inset-0 bg-black/50 z-30 lg:hidden"></div>
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 fade-in">
|
|
<div class="flex gap-6">
|
|
<nav id="sideNav" class="hidden lg:flex flex-col gap-1 w-52 flex-shrink-0 pt-2 fixed lg:static z-40 bg-white lg:bg-transparent p-4 lg:p-0 rounded-lg lg:rounded-none shadow-lg lg:shadow-none top-14 left-0 bottom-0 overflow-y-auto"></nav>
|
|
<div class="flex-1 min-w-0">
|
|
|
|
<!-- 월 네비게이션 -->
|
|
<div class="mmc-month-nav">
|
|
<button type="button" onclick="changeMonth(-1)"><i class="fas fa-chevron-left"></i></button>
|
|
<span id="monthLabel">2026년 3월</span>
|
|
<button type="button" onclick="changeMonth(1)"><i class="fas fa-chevron-right"></i></button>
|
|
<div class="mmc-status-badge" id="statusBadge"></div>
|
|
</div>
|
|
|
|
<!-- 사용자 정보 -->
|
|
<div class="mmc-user-info" id="userInfo">
|
|
<span id="userName">-</span>
|
|
<span id="userDept" class="mmc-user-dept">-</span>
|
|
</div>
|
|
|
|
<!-- 출근부 테이블 -->
|
|
<div class="mmc-table-wrap" id="tableWrap">
|
|
<div class="mmc-skeleton"></div>
|
|
<div class="mmc-skeleton"></div>
|
|
</div>
|
|
|
|
<!-- 요약 카드 -->
|
|
<div class="mmc-sum-cards" id="summaryCards"></div>
|
|
|
|
<!-- 연차 현황 -->
|
|
<div class="mmc-vacation-cards" id="vacationCards"></div>
|
|
|
|
<!-- 확인 상태 메시지 -->
|
|
<div class="mmc-confirmed-status hidden" id="confirmedStatus">
|
|
<i class="fas fa-check-circle text-green-500"></i>
|
|
<span id="confirmedText"></span>
|
|
</div>
|
|
|
|
<!-- 확인/반려 버튼 -->
|
|
<div class="mmc-bottom-actions" id="bottomActions">
|
|
<button type="button" class="mmc-confirm-btn" id="confirmBtn" onclick="confirmMonth()">
|
|
<i class="fas fa-check-circle mr-2"></i>확인 완료
|
|
</button>
|
|
<button type="button" class="mmc-reject-btn" id="rejectBtn" onclick="openRejectModal()">
|
|
<i class="fas fa-times-circle mr-2"></i>문제 있음
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 반려 모달 -->
|
|
<div class="mmc-modal-overlay hidden" id="rejectModal">
|
|
<div class="mmc-modal">
|
|
<div class="mmc-modal-header">
|
|
<span><i class="fas fa-times-circle text-red-500 mr-2"></i>문제 있음 (반려)</span>
|
|
<button type="button" onclick="closeRejectModal()"><i class="fas fa-times"></i></button>
|
|
</div>
|
|
<div class="mmc-modal-body">
|
|
<p class="mmc-modal-desc">반려 사유를 입력해주세요:</p>
|
|
<textarea id="rejectReason" class="mmc-textarea" rows="3" placeholder="예: 3/2 근무시간이 실제와 다릅니다"></textarea>
|
|
<p class="mmc-modal-note">
|
|
<i class="fas fa-info-circle text-blue-400 mr-1"></i>
|
|
반려 시 생산지원팀에 알림이 전달됩니다.
|
|
</p>
|
|
</div>
|
|
<div class="mmc-modal-footer">
|
|
<button type="button" class="mmc-modal-cancel" onclick="closeRejectModal()">취소</button>
|
|
<button type="button" class="mmc-modal-submit" onclick="submitReject()">반려 제출</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Toast -->
|
|
<div id="toastContainer" class="toast-container"></div>
|
|
|
|
<script src="/js/sso-relay.js?v=20260401"></script>
|
|
<script src="/static/js/tkfb-core.js?v=2026040105"></script>
|
|
<script src="/js/api-base.js?v=2026031701"></script>
|
|
<script src="/js/my-monthly-confirm.js?v=2026040106"></script>
|
|
<script>initAuth();</script>
|
|
</body>
|
|
</html>
|