버그 수정 — 출장비 관리 JS 문법 오류 및 모바일 nav 수정

- costs.html: 템플릿 리터럴 내 `||}`  문법 오류 수정 (스크립트 전체 실행 불가 → 햄버거 버튼 미표시 원인)
- style.css: 모바일에서 가로 오버플로우 시 fixed nav 버튼 밀림 방지 (html,body overflow-x:hidden)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
byun
2026-05-31 15:58:03 +09:00
parent 2e8751ea6c
commit 16f7ee651b
2 changed files with 11 additions and 9 deletions

View File

@@ -158,7 +158,8 @@ textarea{resize:vertical;min-height:80px;}
.stats{grid-template-columns:repeat(2,1fr);} .stats{grid-template-columns:repeat(2,1fr);}
.detail-grid{grid-template-columns:1fr;} .detail-grid{grid-template-columns:1fr;}
/* nav: sticky → fixed (가로 오버플로우 body 넓이에 끌려 햄버거 버튼이 밀려나는 문제 방지) */ /* 가로 오버플로우(표 등)가 body혀 fixed nav 버튼이 밀려나는 문제 방지 */
html,body{overflow-x:hidden;}
.nav{position:fixed;left:0;width:100%;box-sizing:border-box;} .nav{position:fixed;left:0;width:100%;box-sizing:border-box;}
body{padding-top:54px;} body{padding-top:54px;}
@@ -176,6 +177,7 @@ textarea{resize:vertical;min-height:80px;}
} }
.mobile-nav-overlay.show{display:block;} .mobile-nav-overlay.show{display:block;}
.nav-hamburger{display:inline-flex;align-items:center;} .nav-hamburger{display:inline-flex;align-items:center;}
.nav-user{display:none;}
} }
/* ── 정비사 모바일 탭 바 ── */ /* ── 정비사 모바일 탭 바 ── */

View File

@@ -111,14 +111,14 @@ async function load() {
<input type="checkbox" class="row-chk" data-id="${c.id}" <input type="checkbox" class="row-chk" data-id="${c.id}"
onchange="this.closest('tr').classList.toggle('selected',this.checked);updateDeleteBtn()"> onchange="this.closest('tr').classList.toggle('selected',this.checked);updateDeleteBtn()">
</td> </td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${(c.report_ids||[]).map(i=>'#'+i).join(', ')}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${(c.report_ids||[]).map(i=>'#'+i).join(', ')}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${c.charger_id||'-'}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${c.charger_id||'-'}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${c.station_name||'-'}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${c.station_name||'-'}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${c.mechanic_name||'-'}<br><small>${c.mechanic_company||''}</small></td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${c.mechanic_name||'-'}<br><small>${c.mechanic_company||''}</small></td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${PARTY_LABEL[c.cost_party_type]||c.cost_party_type||'-'}${c.cost_party_type==='manufacturer'?`<br><small>${c.manufacturer_name||''}</small>`:''}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${PARTY_LABEL[c.cost_party_type]||c.cost_party_type||'-'}${c.cost_party_type==='manufacturer'?`<br><small>${c.manufacturer_name||''}</small>`:''}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer;font-weight:700;color:var(--orange)">${(c.cost_amount||0).toLocaleString()}원</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer;font-weight:700;color:var(--orange)">${(c.cost_amount||0).toLocaleString()}원</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${Auth.costStatusBadge(c.cost_status)}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${Auth.costStatusBadge(c.cost_status)}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||}'" style="cursor:pointer">${Auth.fmtDt(c.reviewed_at)}</td> <td onclick="location.href='/pages/admin/report-detail.html?id=${(c.report_ids||[])[0]||''}'" style="cursor:pointer">${Auth.fmtDt(c.reviewed_at)}</td>
</tr>`).join(''); </tr>`).join('');
} }
load(); load();