From 77b66f49ae0f015d1ea0876ee066144038d4c4cb Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Tue, 31 Mar 2026 14:51:23 +0900 Subject: [PATCH] =?UTF-8?q?fix(tbm):=20=EB=82=B4=20TBM=20=EC=9D=B8?= =?UTF-8?q?=EC=8B=9D=20+=20admin=20=ED=8E=B8=EC=A7=91=20+=20=EB=8D=B0?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=ED=83=91=20=ED=8F=AD=20+=20=ED=95=98?= =?UTF-8?q?=EB=8B=A8=EB=84=A4=EB=B9=84=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - isMySession: admin/system/support_team 바이패스 + 중복 비교 제거 - CSS: max-width 480→768px (데스크탑 너무 좁은 문제) - 하단 네비: 현황/출근 제거 → 연차관리(my-vacation-info) 추가 Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/css/tbm-mobile.css | 4 ++-- system1-factory/web/js/tbm-mobile.js | 7 ++++--- .../web/pages/work/tbm-mobile.html | 19 +++++++------------ 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/system1-factory/web/css/tbm-mobile.css b/system1-factory/web/css/tbm-mobile.css index 4d83f25..935c9ab 100644 --- a/system1-factory/web/css/tbm-mobile.css +++ b/system1-factory/web/css/tbm-mobile.css @@ -15,7 +15,7 @@ button, .m-tbm-row, .m-tab, .m-new-btn, .m-detail-btn, .m-load-more, touch-action: manipulation; } @media (min-width: 480px) { - body { max-width: 480px; margin: 0 auto; min-height: 100vh; } + body { max-width: 768px; margin: 0 auto; min-height: 100vh; } } /* Header */ @@ -306,7 +306,7 @@ button, .m-tbm-row, .m-tab, .m-new-btn, .m-detail-btn, .m-load-more, justify-content: space-around; } @media (min-width: 480px) { - .m-bottom-nav { max-width: 480px; margin: 0 auto; } + .m-bottom-nav { max-width: 768px; margin: 0 auto; } } .m-nav-item { display: flex; diff --git a/system1-factory/web/js/tbm-mobile.js b/system1-factory/web/js/tbm-mobile.js index 8a279df..64ae1bf 100644 --- a/system1-factory/web/js/tbm-mobile.js +++ b/system1-factory/web/js/tbm-mobile.js @@ -123,11 +123,12 @@ }; function isMySession(s) { + var role = (currentUser.role || '').toLowerCase(); + if (role === 'admin' || role === 'system' || role === 'support_team') return true; var userId = currentUser.user_id; - var workerId = currentUser.user_id; var userName = currentUser.name; - return (userId && String(s.created_by) === String(userId)) || - (workerId && String(s.leader_user_id) === String(workerId)) || + return (userId && (String(s.created_by) === String(userId) || + String(s.leader_user_id) === String(userId))) || (userName && s.created_by_name === userName); } diff --git a/system1-factory/web/pages/work/tbm-mobile.html b/system1-factory/web/pages/work/tbm-mobile.html index 639c3c1..4e2d819 100644 --- a/system1-factory/web/pages/work/tbm-mobile.html +++ b/system1-factory/web/pages/work/tbm-mobile.html @@ -95,20 +95,15 @@ 작업보고 - + - - - + + + + + - 현황 - - - - - - - 출근 + 연차관리