fix(showcase): correct QuantMasterGrid props binding (headers & items) and add null-safety checks to prevent TypeError
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 11s
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 11s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 20s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 10s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 9s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped

This commit is contained in:
2026-07-26 02:35:37 +09:00
parent 73b77bcbe2
commit 933eff9d97
2 changed files with 11 additions and 4 deletions
@@ -54,7 +54,7 @@ const onRowClick = (item: any) => {
@click="onRowClick(item)"
>
<td
v-for="h in headers"
v-for="h in (headers || [])"
:key="h.key"
:style="{ textAlign: h.align || 'left' }"
class="fs-7"
@@ -67,7 +67,7 @@ const onRowClick = (item: any) => {
</template>
<template v-else>
<tr>
<td :colspan="headers.length" class="text-center py-4 text-muted">
<td :colspan="(headers || []).length || 1" class="text-center py-4 text-muted">
<i class="ti ti-database-off fs-2 d-block mb-1"></i>
조회된 데이터가 없습니다.
</td>
@@ -27,8 +27,8 @@
<QuantDataGrid :rowData="showcaseRowData" :columnDefs="showcaseColumnDefs" :height="200" />
</div>
<div class="flex flex-col gap-1.5">
<span class="text-xs font-bold text-slate-800">QuantMasterGrid (마스터-디테일 트리 그리드)</span>
<QuantMasterGrid :masterData="showcaseRowData" :height="200" />
<span class="text-xs font-bold text-slate-800">QuantMasterGrid (마스터-디테일 테이블 그리드)</span>
<QuantMasterGrid title="주문 마스터 목록" :headers="masterGridHeaders" :items="showcaseRowData" />
</div>
</div>
</div>
@@ -296,6 +296,13 @@ const domainBarcode = ref('8801234567890');
const aiValue = ref('');
// AG Grid Data
const masterGridHeaders = ref([
{ key: 'orderNo', label: '주문번호', width: '130px' },
{ key: 'customerName', label: '거래처명' },
{ key: 'orderDate', label: '주문일자', width: '110px', align: 'center' as const },
{ key: 'status', label: '상태', width: '90px', align: 'center' as const }
]);
const showcaseColumnDefs = ref([
{ field: 'orderNo', headerName: '주문번호', width: 140 },
{ field: 'customerName', headerName: '거래처명', width: 180 },