From 5ebd0a6ae740cc782f4fa9521424c34b09287624 Mon Sep 17 00:00:00 2001 From: byun Date: Mon, 1 Jun 2026 16:56:18 +0900 Subject: [PATCH] =?UTF-8?q?UX=20=EA=B0=9C=EC=84=A0=20=E2=80=94=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=EC=9D=B4=EB=A0=A5=20=ED=8E=98=EC=9D=B4=EC=A7=80=20adm?= =?UTF-8?q?in=20=EC=A0=91=EA=B7=BC=20=EC=8B=9C=20=EC=95=88=EB=82=B4=20?= =?UTF-8?q?=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit admin 계정으로 정비사 처리이력 접근 시 '직접 등록한 조치만 표시된다'는 안내와 관리자 신고 목록 링크 제공 Co-Authored-By: Claude Sonnet 4.6 --- frontend/static/pages/mechanic/history.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/static/pages/mechanic/history.html b/frontend/static/pages/mechanic/history.html index 22b5106..c5daa3d 100644 --- a/frontend/static/pages/mechanic/history.html +++ b/frontend/static/pages/mechanic/history.html @@ -74,6 +74,16 @@ Auth.require(['mechanic','admin']); Auth.renderNav(document.getElementById('navUser')); +// admin 계정으로 접근 시 안내 +if (Auth.role() === 'admin') { + document.querySelector('.main').insertAdjacentHTML('afterbegin', + `
+ ⚠️ 현재 관리자(${Auth.name()}) 계정으로 접속 중입니다. + 처리이력은 해당 계정이 직접 등록한 조치만 표시됩니다. + 정비사 이력 전체는 관리자 신고 목록에서 확인하세요. +
`); +} + const RESULT_LABEL = { done: '✅ 완료', in_progress: '🔧 진행중',