fix: 캘린더 모달 중복 카드 문제 및 삭제 권한 개선

- monthly_worker_status 조회 시 GROUP BY로 중복 데이터 합산
- 작업보고서 삭제 권한을 그룹장 이상으로 제한 (admin, system, group_leader)
- 중복 데이터 정리를 위한 마이그레이션 SQL 추가 (009_fix_duplicate_monthly_status.sql)
- synology_deployment 버전에도 동일 수정 적용
This commit is contained in:
Hyungi Ahn
2025-12-02 13:08:44 +09:00
parent beaffcad49
commit a9bce9d20b
419 changed files with 275129 additions and 394 deletions

View File

@@ -14,7 +14,15 @@
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.js"></script>
</head>
<body>
<!-- 네비게이션 바 -->
<div id="navbar-container"></div>
<div class="analysis-container">
<!-- 뒤로가기 버튼 -->
<a href="javascript:history.back()" class="back-button" style="margin: 1rem 0;">
← 뒤로가기
</a>
<!-- 페이지 헤더 -->
<header class="page-header fade-in">
<h1 class="page-title">
@@ -297,18 +305,6 @@
</main>
</div>
<!-- 대시보드 이동 버튼 (고정) -->
<div style="position: fixed; top: 20px; right: 20px; z-index: 1000;">
<a href="/pages/dashboard/group-leader.html"
style="display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
color: white; text-decoration: none; border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
font-weight: 600; transition: all 0.2s ease;">
<span>📊</span>
<span>대시보드</span>
</a>
</div>
<!-- JavaScript -->
<script src="/js/work-analysis.js?v=4"></script>
@@ -2898,5 +2894,6 @@
// 초기 모드 설정
window.currentAnalysisMode = 'period';
</script>
<script src="/js/load-navbar.js?v=4"></script>
</body>
</html>