UI 개선 — 신고 목록 표에 발생일시 컬럼 추가
신고일시 앞에 발생일시(occurred_at) 컬럼 추가. 미입력 시 '-' 표시. 관리자·옵저버 신고 목록·대시보드 모두 반영. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="cb-cell"><input type="checkbox" id="chkAll" onchange="toggleAll(this)"></th>
|
<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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tbody"></tbody>
|
<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.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">${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;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">${Auth.fmtDt(r.reported_at)}</td>
|
||||||
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">
|
<td onclick="location.href='/pages/admin/report-detail.html?id=${r.id}'" style="cursor:pointer">
|
||||||
${r.source === 'dashboard'
|
${r.source === 'dashboard'
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th>접수번호</th><th>충전기ID</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><th>신고일시</th><th>정비사</th><th>상태</th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody id="tbody"></tbody>
|
<tbody id="tbody"></tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -112,6 +112,7 @@ function render(chargerId) {
|
|||||||
<td>${r.station_name || '-'}</td>
|
<td>${r.station_name || '-'}</td>
|
||||||
<td>${(r.issue_types || []).join(', ') || '-'}</td>
|
<td>${(r.issue_types || []).join(', ') || '-'}</td>
|
||||||
<td>${r.error_code || '-'}</td>
|
<td>${r.error_code || '-'}</td>
|
||||||
|
<td>${r.occurred_at ? Auth.fmtDt(r.occurred_at) : '<span style="color:var(--gray4)">-</span>'}</td>
|
||||||
<td>${Auth.fmtDt(r.reported_at)}</td>
|
<td>${Auth.fmtDt(r.reported_at)}</td>
|
||||||
<td>${r.mechanic_name || '-'}</td>
|
<td>${r.mechanic_name || '-'}</td>
|
||||||
<td>${Auth.statusBadge(r.status)}</td>
|
<td>${Auth.statusBadge(r.status)}</td>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th>접수번호</th><th>충전기ID</th><th>충전소명</th><th>CPO</th>
|
<th>접수번호</th><th>충전기ID</th><th>충전소명</th><th>CPO</th>
|
||||||
<th>문제유형</th><th>에러코드</th><th>신고일시</th>
|
<th>문제유형</th><th>에러코드</th><th>발생일시</th><th>신고일시</th>
|
||||||
<th>정비사</th><th>조치완료</th><th>상태</th>
|
<th>정비사</th><th>조치완료</th><th>상태</th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody id="tbody"></tbody>
|
<tbody id="tbody"></tbody>
|
||||||
@@ -91,6 +91,7 @@ function render() {
|
|||||||
<td>${r.cpo_name || '-'}</td>
|
<td>${r.cpo_name || '-'}</td>
|
||||||
<td>${(r.issue_types || []).join(', ') || '-'}</td>
|
<td>${(r.issue_types || []).join(', ') || '-'}</td>
|
||||||
<td>${r.error_code || '-'}</td>
|
<td>${r.error_code || '-'}</td>
|
||||||
|
<td>${r.occurred_at ? Auth.fmtDt(r.occurred_at) : '<span style="color:var(--gray4)">-</span>'}</td>
|
||||||
<td>${Auth.fmtDt(r.reported_at)}</td>
|
<td>${Auth.fmtDt(r.reported_at)}</td>
|
||||||
<td>${r.mechanic_name || '-'}</td>
|
<td>${r.mechanic_name || '-'}</td>
|
||||||
<td>${r.mechanic_name && r.status === 'done' ? '완료' : '-'}</td>
|
<td>${r.mechanic_name && r.status === 'done' ? '완료' : '-'}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user