- 페이지 폴더 재구성: safety/, attendance/ 폴더 신규 생성 - work/ → safety/: 이슈 신고, 출입 신청 관련 페이지 이동 - common/ → attendance/: 근태/휴가 관련 페이지 이동 - admin/ 정리: safety-* 파일들을 safety/로 이동 - 사이드바 네비게이션 메뉴 구현 - 카테고리별 메뉴: 작업관리, 안전관리, 근태관리, 시스템관리 - 접기/펼치기 기능 및 상태 저장 - 관리자 전용 메뉴 자동 표시/숨김 - 날씨 API 연동 (기상청 단기예보) - TBM 및 navbar에 현재 날씨 표시 - weatherService.js 추가 - 안전 체크리스트 확장 - 기본/날씨별/작업별 체크 유형 추가 - checklist-manage.html 페이지 추가 - 이슈 신고 시스템 구현 - workIssueController, workIssueModel, workIssueRoutes 추가 - DB 마이그레이션 파일 추가 (실행 대기) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
141 lines
6.4 KiB
HTML
141 lines
6.4 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ko">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>페이지 권한 관리 | (주)테크니컬코리아</title>
|
||
<link rel="stylesheet" href="/css/design-system.css">
|
||
<link rel="stylesheet" href="/css/common.css?v=1">
|
||
<link rel="stylesheet" href="/css/admin-settings.css?v=1">
|
||
<link rel="icon" type="image/png" href="/img/favicon.png">
|
||
<script type="module" src="/js/auth-check.js" defer></script>
|
||
</head>
|
||
<body>
|
||
<div class="work-report-container">
|
||
<!-- 네비게이션 바 -->
|
||
<div id="navbar-container"></div>
|
||
|
||
<!-- 메인 콘텐츠 -->
|
||
<main class="work-report-main">
|
||
<div class="dashboard-main">
|
||
<div class="page-header">
|
||
<div class="page-title-section">
|
||
<h1 class="page-title">
|
||
<span class="title-icon">🔐</span>
|
||
페이지 접근 권한 관리
|
||
</h1>
|
||
<p class="page-description">작업자에게 특정 페이지 접근 권한을 부여하거나 회수합니다</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 사용자 목록 섹션 -->
|
||
<div class="settings-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">
|
||
<span class="section-icon">👥</span>
|
||
사용자 목록
|
||
</h2>
|
||
<div class="filter-buttons">
|
||
<button class="filter-btn active" data-filter="all">전체</button>
|
||
<button class="filter-btn" data-filter="with-access">권한 있음</button>
|
||
<button class="filter-btn" data-filter="no-access">권한 없음</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="users-container">
|
||
<div class="users-table-container">
|
||
<table class="users-table">
|
||
<thead>
|
||
<tr>
|
||
<th>사용자명</th>
|
||
<th>아이디</th>
|
||
<th>역할</th>
|
||
<th>작업자</th>
|
||
<th>접근 가능 페이지</th>
|
||
<th>관리</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody id="usersTableBody">
|
||
<tr>
|
||
<td colspan="6" style="text-align: center; padding: 2rem;">
|
||
<div class="spinner"></div>
|
||
<p>사용자 목록을 불러오는 중...</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="empty-state" id="emptyState" style="display: none;">
|
||
<div class="empty-icon">👥</div>
|
||
<h3>등록된 사용자가 없습니다</h3>
|
||
<p>권한을 부여할 사용자 계정이 없습니다.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
</div>
|
||
|
||
<!-- 페이지 권한 설정 모달 -->
|
||
<div id="pageAccessModal" class="modal-overlay" style="display: none;">
|
||
<div class="modal-container" style="max-width: 700px;">
|
||
<div class="modal-header">
|
||
<h2 id="modalTitle">페이지 권한 설정</h2>
|
||
<button class="modal-close-btn" onclick="closePageAccessModal()">×</button>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<div class="user-info-section" style="background: #f9fafb; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem;">
|
||
<div style="display: flex; align-items: center; gap: 0.75rem;">
|
||
<div style="width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600;">
|
||
<span id="modalUserInitial">-</span>
|
||
</div>
|
||
<div>
|
||
<div style="font-weight: 600; font-size: 1rem; color: #111827;" id="modalUserName">사용자명</div>
|
||
<div style="font-size: 0.875rem; color: #6b7280;">
|
||
<span id="modalUsername">username</span>
|
||
<span style="margin: 0 0.5rem;">•</span>
|
||
<span id="modalWorkerName">작업자</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="page-access-list">
|
||
<h3 style="font-size: 1rem; font-weight: 600; color: #374151; margin-bottom: 1rem;">
|
||
접근 가능 페이지 선택
|
||
</h3>
|
||
|
||
<div id="pageListContainer" style="max-height: 400px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.5rem;">
|
||
<div style="text-align: center; padding: 2rem; color: #6b7280;">
|
||
<div class="spinner" style="margin: 0 auto 0.5rem;"></div>
|
||
페이지 목록을 불러오는 중...
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div style="margin-top: 1.5rem; padding: 1rem; background: #fffbeb; border: 1px solid #fde047; border-radius: 0.5rem;">
|
||
<p style="margin: 0; font-size: 0.875rem; color: #92400e;">
|
||
<strong>💡 참고:</strong> Admin 및 System Admin은 모든 페이지에 자동으로 접근할 수 있습니다.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" onclick="closePageAccessModal()">취소</button>
|
||
<button type="button" class="btn btn-primary" id="savePageAccessBtn">저장</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 토스트 알림 -->
|
||
<div class="toast-container" id="toastContainer"></div>
|
||
|
||
<!-- JavaScript -->
|
||
<script type="module" src="/js/api-config.js?v=13"></script>
|
||
<script type="module" src="/js/load-navbar.js?v=4"></script>
|
||
<script src="/js/page-access-management.js?v=1"></script>
|
||
</body>
|
||
</html>
|