✨ 새로운 기능: - 작업 분석 페이지 구현 (기간별, 프로젝트별, 작업자별, 오류별) - 개별 분석 실행 버튼으로 API 부하 최적화 - 연차/휴무 집계 방식 개선 (주말 제외, 작업내용 통합) - 프로젝트 관리 시스템 (활성화/비활성화) - 작업자 관리 시스템 (CRUD 기능) - 코드 관리 시스템 (작업유형, 작업상태, 오류유형) 🎨 UI/UX 개선: - 기간별 작업 현황을 테이블 형태로 변경 - 작업자별 rowspan 그룹화로 가독성 향상 - 연차/휴무 프로젝트 하단 배치 및 시각적 구분 - 기간 확정 시스템으로 사용자 경험 개선 - 반응형 디자인 적용 🔧 기술적 개선: - Rate Limiting 제거 (내부 시스템 최적화) - 주말 연차/휴무 자동 제외 로직 - 작업공수 계산 정확도 향상 - 데이터베이스 마이그레이션 추가 - API 엔드포인트 확장 및 최적화 🐛 버그 수정: - projectSelect 요소 참조 오류 해결 - 차트 높이 무한 증가 문제 해결 - 날짜 표시 형식 단순화 - 작업보고서 저장 validation 오류 수정
290 lines
13 KiB
HTML
290 lines
13 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/common.css?v=1">
|
||
<link rel="stylesheet" href="/css/project-management.css?v=4">
|
||
<link rel="icon" type="image/png" href="/img/favicon.png">
|
||
<script src="/js/auth-check.js?v=1" defer></script>
|
||
<script src="/js/api-config.js?v=1" defer></script>
|
||
</head>
|
||
<body>
|
||
<!-- 헤더 -->
|
||
<header class="dashboard-header">
|
||
<div class="header-left">
|
||
<div class="logo-section">
|
||
<img src="/img/logo.png" alt="테크니컬코리아" class="logo">
|
||
<div class="company-info">
|
||
<h1 class="company-name">테크니컬코리아</h1>
|
||
<p class="company-subtitle">코드 관리</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="header-center">
|
||
<div class="current-time">
|
||
<span class="time-label">현재 시각</span>
|
||
<span class="time-value" id="timeValue">--:--:--</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="header-right">
|
||
<div class="header-actions">
|
||
<a href="/pages/management/work-management.html" class="back-btn" title="작업 관리로 돌아가기">
|
||
<span class="btn-icon">←</span>
|
||
<span class="btn-text">작업 관리</span>
|
||
</a>
|
||
<a href="/pages/dashboard/group-leader.html" class="dashboard-btn" title="대시보드로 이동">
|
||
<span class="btn-icon">📊</span>
|
||
<span class="btn-text">대시보드</span>
|
||
</a>
|
||
</div>
|
||
|
||
<div class="user-profile" id="userProfile">
|
||
<div class="user-avatar">
|
||
<span class="avatar-text" id="userInitial">사</span>
|
||
</div>
|
||
<div class="user-info">
|
||
<span class="user-name" id="userName">사용자</span>
|
||
<span class="user-role" id="userRole">작업자</span>
|
||
</div>
|
||
|
||
<div class="profile-dropdown" id="profileMenu" style="display: none;">
|
||
<button class="dropdown-item logout-btn" id="logoutBtn">
|
||
<span class="dropdown-icon">🚪</span>
|
||
로그아웃
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- 메인 콘텐츠 -->
|
||
<main 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 class="page-actions">
|
||
<button class="btn btn-secondary" onclick="refreshAllCodes()">
|
||
<span class="btn-icon">🔄</span>
|
||
전체 새로고침
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 코드 유형 탭 -->
|
||
<div class="code-tabs">
|
||
<button class="tab-btn active" data-tab="work-status" onclick="switchCodeTab('work-status')">
|
||
<span class="tab-icon">📊</span>
|
||
작업 상태 유형
|
||
</button>
|
||
<button class="tab-btn" data-tab="error-types" onclick="switchCodeTab('error-types')">
|
||
<span class="tab-icon">⚠️</span>
|
||
오류 유형
|
||
</button>
|
||
<button class="tab-btn" data-tab="work-types" onclick="switchCodeTab('work-types')">
|
||
<span class="tab-icon">🔧</span>
|
||
작업 유형
|
||
</button>
|
||
</div>
|
||
|
||
<!-- 작업 상태 유형 관리 -->
|
||
<div id="work-status-tab" class="code-tab-content active">
|
||
<div class="code-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">
|
||
<span class="section-icon">📊</span>
|
||
작업 상태 유형 관리
|
||
</h2>
|
||
<div class="section-actions">
|
||
<button class="btn btn-primary" onclick="openCodeModal('work-status')">
|
||
<span class="btn-icon">➕</span>
|
||
새 상태 추가
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="code-stats">
|
||
<span class="stat-item">
|
||
<span class="stat-icon">📊</span>
|
||
총 <span id="workStatusCount">0</span>개
|
||
</span>
|
||
<span class="stat-item">
|
||
<span class="stat-icon">✅</span>
|
||
정상 <span id="normalStatusCount">0</span>개
|
||
</span>
|
||
<span class="stat-item">
|
||
<span class="stat-icon">❌</span>
|
||
오류 <span id="errorStatusCount">0</span>개
|
||
</span>
|
||
</div>
|
||
|
||
<div class="code-grid" id="workStatusGrid">
|
||
<!-- 작업 상태 유형 카드들이 여기에 동적으로 생성됩니다 -->
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 오류 유형 관리 -->
|
||
<div id="error-types-tab" class="code-tab-content">
|
||
<div class="code-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">
|
||
<span class="section-icon">⚠️</span>
|
||
오류 유형 관리
|
||
</h2>
|
||
<div class="section-actions">
|
||
<button class="btn btn-primary" onclick="openCodeModal('error-types')">
|
||
<span class="btn-icon">➕</span>
|
||
새 오류 유형 추가
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="code-stats">
|
||
<span class="stat-item">
|
||
<span class="stat-icon">⚠️</span>
|
||
총 <span id="errorTypesCount">0</span>개
|
||
</span>
|
||
<span class="stat-item critical-stat">
|
||
<span class="stat-icon">🔴</span>
|
||
심각 <span id="criticalErrorsCount">0</span>개
|
||
</span>
|
||
<span class="stat-item high-stat">
|
||
<span class="stat-icon">🟠</span>
|
||
높음 <span id="highErrorsCount">0</span>개
|
||
</span>
|
||
<span class="stat-item medium-stat">
|
||
<span class="stat-icon">🟡</span>
|
||
보통 <span id="mediumErrorsCount">0</span>개
|
||
</span>
|
||
<span class="stat-item low-stat">
|
||
<span class="stat-icon">🟢</span>
|
||
낮음 <span id="lowErrorsCount">0</span>개
|
||
</span>
|
||
</div>
|
||
|
||
<div class="code-grid" id="errorTypesGrid">
|
||
<!-- 오류 유형 카드들이 여기에 동적으로 생성됩니다 -->
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 작업 유형 관리 -->
|
||
<div id="work-types-tab" class="code-tab-content">
|
||
<div class="code-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">
|
||
<span class="section-icon">🔧</span>
|
||
작업 유형 관리
|
||
</h2>
|
||
<div class="section-actions">
|
||
<button class="btn btn-primary" onclick="openCodeModal('work-types')">
|
||
<span class="btn-icon">➕</span>
|
||
새 작업 유형 추가
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="code-stats">
|
||
<span class="stat-item">
|
||
<span class="stat-icon">🔧</span>
|
||
총 <span id="workTypesCount">0</span>개
|
||
</span>
|
||
<span class="stat-item">
|
||
<span class="stat-icon">📁</span>
|
||
카테고리 <span id="workCategoriesCount">0</span>개
|
||
</span>
|
||
</div>
|
||
|
||
<div class="code-grid" id="workTypesGrid">
|
||
<!-- 작업 유형 카드들이 여기에 동적으로 생성됩니다 -->
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
|
||
<!-- 코드 추가/수정 모달 -->
|
||
<div id="codeModal" class="modal-overlay" style="display: none;">
|
||
<div class="modal-container">
|
||
<div class="modal-header">
|
||
<h2 id="modalTitle">코드 추가</h2>
|
||
<button class="modal-close-btn" onclick="closeCodeModal()">×</button>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<form id="codeForm" onsubmit="event.preventDefault(); saveCode();">
|
||
<input type="hidden" id="codeId">
|
||
<input type="hidden" id="codeType">
|
||
|
||
<!-- 공통 필드 -->
|
||
<div class="form-group">
|
||
<label class="form-label">이름 *</label>
|
||
<input type="text" id="codeName" class="form-control" placeholder="코드명을 입력하세요" required>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label class="form-label">설명</label>
|
||
<textarea id="codeDescription" class="form-control" rows="3" placeholder="상세 설명을 입력하세요"></textarea>
|
||
</div>
|
||
|
||
<!-- 작업 상태 유형 전용 필드 -->
|
||
<div class="form-group" id="isErrorGroup" style="display: none;">
|
||
<label class="form-label">
|
||
<input type="checkbox" id="isError" class="form-checkbox">
|
||
오류 상태로 분류
|
||
</label>
|
||
<small class="form-help">체크하면 이 상태는 오류로 간주됩니다</small>
|
||
</div>
|
||
|
||
<!-- 오류 유형 전용 필드 -->
|
||
<div class="form-group" id="severityGroup" style="display: none;">
|
||
<label class="form-label">심각도 *</label>
|
||
<select id="severity" class="form-control">
|
||
<option value="low">낮음 (Low)</option>
|
||
<option value="medium" selected>보통 (Medium)</option>
|
||
<option value="high">높음 (High)</option>
|
||
<option value="critical">심각 (Critical)</option>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group" id="solutionGuideGroup" style="display: none;">
|
||
<label class="form-label">해결 가이드</label>
|
||
<textarea id="solutionGuide" class="form-control" rows="4" placeholder="이 오류 발생 시 해결 방법을 입력하세요"></textarea>
|
||
</div>
|
||
|
||
<!-- 작업 유형 전용 필드 -->
|
||
<div class="form-group" id="categoryGroup" style="display: none;">
|
||
<label class="form-label">카테고리</label>
|
||
<input type="text" id="category" class="form-control" placeholder="작업 카테고리 (예: PKG, Vessel)" list="categoryList">
|
||
<datalist id="categoryList">
|
||
<!-- 기존 카테고리 목록이 여기에 동적으로 생성됩니다 -->
|
||
</datalist>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" onclick="closeCodeModal()">취소</button>
|
||
<button type="button" class="btn btn-danger" id="deleteCodeBtn" onclick="deleteCode()" style="display: none;">
|
||
🗑️ 삭제
|
||
</button>
|
||
<button type="button" class="btn btn-primary" onclick="saveCode()">
|
||
💾 저장
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="/js/code-management.js?v=1"></script>
|
||
</body>
|
||
</html>
|