feat: 대시보드 작업장 현황 지도 구현

- 실시간 작업장 현황을 지도로 시각화
- 작업장 관리 페이지에서 정의한 구역 정보 활용
- TBM 작업자 및 방문자 현황 표시

주요 변경사항:
- dashboard.html: 작업장 현황 섹션 추가 (기존 작업 현황 테이블 제거)
- workplace-status.js: 지도 렌더링 및 데이터 통합 로직 구현
- modern-dashboard.js: 삭제된 DOM 요소 조건부 체크 추가

시각화 방식:
- 인원 없음: 회색 테두리 + 작업장 이름
- 내부 작업자: 파란색 영역 + 인원 수
- 외부 방문자: 보라색 영역 + 인원 수
- 둘 다: 초록색 영역 + 총 인원 수

기술 구현:
- Canvas API 기반 사각형 영역 렌더링
- map-regions API를 통한 데이터 일관성 보장
- 클릭 이벤트로 상세 정보 모달 표시

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-01-29 15:46:47 +09:00
parent e1227a69fe
commit b6485e3140
87 changed files with 17509 additions and 698 deletions

View File

@@ -675,3 +675,100 @@
flex-direction: column;
}
}
/* 페이지 권한 관리 스타일 */
.page-access-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
padding: var(--space-3);
background: var(--bg-secondary);
}
.page-access-category {
margin-bottom: var(--space-4);
}
.page-access-category:last-child {
margin-bottom: 0;
}
.page-access-category-title {
font-size: var(--text-sm);
font-weight: var(--font-semibold);
color: var(--text-secondary);
margin-bottom: var(--space-2);
padding-bottom: var(--space-2);
border-bottom: 1px solid var(--border-light);
text-transform: uppercase;
}
.page-access-item {
display: flex;
align-items: center;
padding: var(--space-2);
border-radius: var(--radius-sm);
transition: var(--transition-normal);
}
.page-access-item:hover {
background: var(--bg-hover);
}
.page-access-item label {
display: flex;
align-items: center;
cursor: pointer;
flex: 1;
margin: 0;
}
.page-access-item input[type="checkbox"] {
margin-right: var(--space-2);
width: 18px;
height: 18px;
cursor: pointer;
}
.page-access-item .page-name {
font-size: var(--text-sm);
color: var(--text-primary);
font-weight: var(--font-medium);
}
/* 권한 관리 버튼 스타일 */
.action-btn.permissions {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
}
.action-btn.permissions:hover {
background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
/* 페이지 권한 모달 사용자 정보 */
.page-access-user-info {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-4);
background: var(--bg-secondary);
border-radius: var(--radius-lg);
margin-bottom: var(--space-4);
}
.page-access-user-info h3 {
margin: 0;
font-size: var(--text-lg);
font-weight: var(--font-semibold);
color: var(--text-primary);
}
.page-access-user-info p {
margin: 0;
font-size: var(--text-sm);
color: var(--text-secondary);
}