UI 개선 — 신고 목록 표에 발생일시 컬럼 추가

신고일시 앞에 발생일시(occurred_at) 컬럼 추가.
미입력 시 '-' 표시. 관리자·옵저버 신고 목록·대시보드 모두 반영.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
byun
2026-06-01 15:51:38 +09:00
parent d429ed627d
commit 2908c06b93
3 changed files with 6 additions and 3 deletions

View File

@@ -95,7 +95,7 @@
<thead>
<tr>
<th class="cb-cell"><input type="checkbox" id="chkAll" onchange="toggleAll(this)"></th>
<th>#</th><th>충전기ID</th><th>충전소</th><th>종류</th><th>문제유형</th><th>신고일시</th><th>신고자</th><th>상태</th><th>정비사</th>
<th>#</th><th>충전기ID</th><th>충전소</th><th>종류</th><th>문제유형</th><th>발생일시</th><th>신고일시</th><th>신고자</th><th>상태</th><th>정비사</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
@@ -214,6 +214,7 @@ function renderTable() {
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">${r.station_name||'-'}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">${r.charger_type||'-'}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer;max-width:200px">${(r.issue_types||[]).join(', ')}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">${r.occurred_at ? Auth.fmtDt(r.occurred_at) : '<span style="color:var(--gray4)">-</span>'}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">${Auth.fmtDt(r.reported_at)}</td>
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">
${r.source === 'dashboard'