feat: 다수 기능 개선 - 순찰, 출근, 작업분석, 모바일 UI 등

- 순찰/점검 기능 개선 (zone-detail 페이지 추가)
- 출근/근태 시스템 개선 (연차 조회, 근무현황)
- 작업분석 대분류 그룹화 및 마이그레이션 스크립트
- 모바일 네비게이션 UI 추가
- NAS 배포 도구 및 문서 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-02-09 14:41:01 +09:00
parent 1548253f56
commit 2b1c7bfb88
633 changed files with 361224 additions and 1090 deletions

View File

@@ -298,22 +298,26 @@
/* 작업장 마커 */
.workplace-marker {
position: absolute;
padding: 0.5rem 0.75rem;
padding: 0.3rem 0.5rem;
background: var(--surface-color, #fff);
border: 2px solid var(--border-color, #cbd5e1);
border-radius: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.2s;
font-size: 0.7rem;
font-weight: 600;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
transition: all 0.15s ease-out;
transform: translate(-50%, -50%);
white-space: nowrap;
/* z-index는 JS에서 y좌표 기반 설정 (아래에 있을수록 높음) */
}
.workplace-marker:hover {
transform: translate(-50%, -50%) scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
transform: translate(-50%, -50%) scale(1.15);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
z-index: 200 !important;
background: #f0f9ff;
border-color: var(--primary-color, #3b82f6);
}
.workplace-marker.completed {
@@ -330,7 +334,16 @@
border-color: var(--primary-color, #3b82f6);
background: var(--primary-color, #3b82f6);
color: #fff;
z-index: 10;
z-index: 150 !important;
transform: translate(-50%, -50%) scale(1.1);
}
/* 작은 마커 (밀집 구역용) */
.workplace-marker.compact {
padding: 0.2rem 0.35rem;
font-size: 0.6rem;
border-radius: 4px;
border-width: 1.5px;
}
/* 작업장 목록 */
@@ -665,6 +678,540 @@
margin-bottom: 0;
}
/* ==================== 작업장 상세 정보 패널 ==================== */
.workplace-detail-panel {
position: fixed;
top: 90px;
right: 20px;
width: 400px;
max-height: calc(100vh - 110px);
background: var(--surface-color, #fff);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
display: none;
flex-direction: column;
z-index: 100;
overflow: hidden;
}
.detail-panel-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 1rem 1.25rem;
background: linear-gradient(135deg, var(--primary-color, #3b82f6), #2563eb);
color: #fff;
}
.detail-panel-title h3 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
}
.detail-panel-subtitle {
font-size: 0.8rem;
opacity: 0.9;
}
.detail-panel-close {
background: rgba(255, 255, 255, 0.2);
border: none;
color: #fff;
width: 28px;
height: 28px;
border-radius: 6px;
font-size: 1.25rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.detail-panel-close:hover {
background: rgba(255, 255, 255, 0.3);
}
/* 요약 정보 */
.detail-panel-summary {
display: flex;
gap: 0.5rem;
padding: 0.75rem 1rem;
background: var(--bg-color, #f8fafc);
border-bottom: 1px solid var(--border-color, #e2e8f0);
flex-wrap: wrap;
}
.summary-item {
flex: 1;
min-width: 60px;
text-align: center;
padding: 0.5rem;
background: var(--surface-color, #fff);
border-radius: 8px;
}
.summary-item.warning {
background: #fef3c7;
}
.summary-item.danger {
background: #fee2e2;
}
.summary-item.info {
background: #dbeafe;
}
.summary-value {
display: block;
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary, #1e293b);
}
.summary-item.warning .summary-value {
color: #b45309;
}
.summary-item.danger .summary-value {
color: #dc2626;
}
.summary-item.info .summary-value {
color: #2563eb;
}
.summary-label {
font-size: 0.7rem;
color: var(--text-secondary, #64748b);
}
/* 탭 */
.detail-panel-tabs {
display: flex;
border-bottom: 1px solid var(--border-color, #e2e8f0);
background: var(--surface-color, #fff);
}
.detail-tab {
flex: 1;
padding: 0.6rem 0.5rem;
border: none;
background: none;
font-size: 0.75rem;
color: var(--text-secondary, #64748b);
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s;
position: relative;
}
.detail-tab:hover {
color: var(--primary-color, #3b82f6);
}
.detail-tab.active {
color: var(--primary-color, #3b82f6);
border-bottom-color: var(--primary-color, #3b82f6);
font-weight: 600;
}
.tab-badge {
display: none;
min-width: 16px;
height: 16px;
padding: 0 4px;
background: var(--error-color, #dc2626);
color: #fff;
font-size: 0.65rem;
font-weight: 600;
border-radius: 8px;
margin-left: 4px;
vertical-align: middle;
}
.tab-badge.show {
display: inline-flex;
align-items: center;
justify-content: center;
}
.tab-badge.warning {
background: var(--warning-color, #f59e0b);
}
/* 탭 콘텐츠 */
.detail-panel-content {
flex: 1;
overflow-y: auto;
padding: 1rem;
background: var(--bg-color, #f8fafc);
}
.detail-tab-content {
display: none;
}
.detail-tab-content.active {
display: block;
}
.detail-empty {
text-align: center;
padding: 2rem 1rem;
color: var(--text-secondary, #64748b);
font-size: 0.9rem;
}
/* 신고/부적합 섹션 */
.issue-section {
margin-bottom: 1.5rem;
}
.issue-section-title {
font-size: 0.85rem;
font-weight: 600;
margin: 0 0 0.75rem;
color: var(--text-primary, #1e293b);
}
.issue-item {
background: var(--surface-color, #fff);
border-radius: 8px;
padding: 0.75rem;
margin-bottom: 0.5rem;
border-left: 3px solid var(--border-color, #cbd5e1);
}
.issue-item.pending {
border-left-color: #f59e0b;
}
.issue-item.info {
border-left-color: #3b82f6;
}
.issue-item.warning {
border-left-color: #f59e0b;
}
.issue-item.success {
border-left-color: #16a34a;
}
.issue-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.issue-title {
font-weight: 600;
font-size: 0.9rem;
}
.issue-status {
font-size: 0.7rem;
padding: 2px 8px;
border-radius: 10px;
background: var(--bg-color, #f1f5f9);
}
.issue-status.pending {
background: #fef3c7;
color: #b45309;
}
.issue-status.info {
background: #dbeafe;
color: #1d4ed8;
}
.issue-status.warning {
background: #fed7aa;
color: #c2410c;
}
.issue-status.success {
background: #dcfce7;
color: #166534;
}
.issue-item-meta {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.5rem;
font-size: 0.75rem;
}
.issue-category {
color: var(--text-secondary, #64748b);
}
.issue-severity {
padding: 1px 6px;
border-radius: 4px;
font-size: 0.65rem;
}
.issue-severity.critical {
background: #fee2e2;
color: #dc2626;
}
.issue-severity.high {
background: #fed7aa;
color: #c2410c;
}
.issue-severity.medium {
background: #fef3c7;
color: #b45309;
}
.issue-severity.low {
background: #d1fae5;
color: #059669;
}
.issue-date {
color: var(--text-tertiary, #94a3b8);
}
.issue-desc {
font-size: 0.8rem;
color: var(--text-secondary, #64748b);
margin-bottom: 0.25rem;
}
.issue-reporter {
font-size: 0.7rem;
color: var(--text-tertiary, #94a3b8);
}
/* 설비 섹션 */
.equipment-section {
margin-bottom: 1.5rem;
}
.equipment-section-title {
font-size: 0.85rem;
font-weight: 600;
margin: 0 0 0.75rem;
color: var(--text-primary, #1e293b);
}
.repair-item {
background: var(--surface-color, #fff);
border-radius: 8px;
padding: 0.75rem;
margin-bottom: 0.5rem;
border-left: 3px solid #f59e0b;
}
.repair-item.emergency {
border-left-color: #dc2626;
background: #fef2f2;
}
.repair-item.high {
border-left-color: #f97316;
}
.repair-item-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
}
.repair-equipment {
font-weight: 600;
font-size: 0.85rem;
}
.repair-priority {
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 4px;
background: #fef3c7;
color: #b45309;
}
.repair-priority.emergency {
background: #fee2e2;
color: #dc2626;
}
.repair-priority.high {
background: #fed7aa;
color: #c2410c;
}
.repair-category, .repair-desc, .repair-date {
font-size: 0.75rem;
color: var(--text-secondary, #64748b);
}
.equipment-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.equipment-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--surface-color, #fff);
border-radius: 6px;
font-size: 0.8rem;
}
.equipment-item.attention {
background: #fef2f2;
}
.equipment-name {
flex: 1;
font-weight: 500;
}
.equipment-code {
color: var(--text-tertiary, #94a3b8);
font-size: 0.7rem;
}
.equipment-status {
font-size: 0.65rem;
padding: 2px 6px;
border-radius: 4px;
background: #dcfce7;
color: #166534;
}
.equipment-status.repair_needed {
background: #fee2e2;
color: #dc2626;
}
.equipment-status.under_repair {
background: #fef3c7;
color: #b45309;
}
.equipment-status.inactive {
background: #f1f5f9;
color: #64748b;
}
/* 출입 섹션 */
.visits-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.visit-item {
background: var(--surface-color, #fff);
border-radius: 8px;
padding: 0.75rem;
}
.visit-item-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
}
.visit-name {
font-weight: 600;
font-size: 0.9rem;
}
.visit-company {
font-size: 0.75rem;
color: var(--text-secondary, #64748b);
}
.visit-purpose {
font-size: 0.8rem;
color: var(--primary-color, #3b82f6);
margin-bottom: 0.25rem;
}
.visit-time, .visit-companion, .visit-vehicle {
font-size: 0.75rem;
color: var(--text-secondary, #64748b);
}
/* TBM 섹션 */
.tbm-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.tbm-item {
background: var(--surface-color, #fff);
border-radius: 8px;
padding: 0.75rem;
}
.tbm-item-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.tbm-task {
font-weight: 600;
font-size: 0.9rem;
}
.tbm-status {
font-size: 0.7rem;
padding: 2px 8px;
border-radius: 10px;
background: var(--bg-color, #f1f5f9);
}
.tbm-status.completed {
background: #dcfce7;
color: #166534;
}
.tbm-status.in_progress {
background: #dbeafe;
color: #1d4ed8;
}
.tbm-location, .tbm-leader, .tbm-content, .tbm-safety {
font-size: 0.8rem;
color: var(--text-secondary, #64748b);
margin-bottom: 0.25rem;
}
.tbm-team {
font-size: 0.75rem;
padding-top: 0.5rem;
border-top: 1px dashed var(--border-color, #e2e8f0);
margin-top: 0.5rem;
}
.tbm-team-label {
font-weight: 500;
color: var(--text-primary, #1e293b);
}
.tbm-team-names {
color: var(--text-secondary, #64748b);
}
/* 반응형 */
@media (max-width: 768px) {
.patrol-start-section {
@@ -733,4 +1280,24 @@
flex-wrap: wrap;
justify-content: center;
}
/* 모바일 상세 패널 */
.workplace-detail-panel {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
max-height: 100vh;
border-radius: 0;
}
.detail-panel-tabs {
overflow-x: auto;
}
.detail-tab {
white-space: nowrap;
}
}