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
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:
@@ -54,7 +54,7 @@ const onRowClick = (item: any) => {
|
|||||||
@click="onRowClick(item)"
|
@click="onRowClick(item)"
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
v-for="h in headers"
|
v-for="h in (headers || [])"
|
||||||
:key="h.key"
|
:key="h.key"
|
||||||
:style="{ textAlign: h.align || 'left' }"
|
:style="{ textAlign: h.align || 'left' }"
|
||||||
class="fs-7"
|
class="fs-7"
|
||||||
@@ -67,7 +67,7 @@ const onRowClick = (item: any) => {
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<tr>
|
<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>
|
<i class="ti ti-database-off fs-2 d-block mb-1"></i>
|
||||||
조회된 데이터가 없습니다.
|
조회된 데이터가 없습니다.
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
<QuantDataGrid :rowData="showcaseRowData" :columnDefs="showcaseColumnDefs" :height="200" />
|
<QuantDataGrid :rowData="showcaseRowData" :columnDefs="showcaseColumnDefs" :height="200" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-1.5">
|
<div class="flex flex-col gap-1.5">
|
||||||
<span class="text-xs font-bold text-slate-800">QuantMasterGrid (마스터-디테일 트리 그리드)</span>
|
<span class="text-xs font-bold text-slate-800">QuantMasterGrid (마스터-디테일 테이블 그리드)</span>
|
||||||
<QuantMasterGrid :masterData="showcaseRowData" :height="200" />
|
<QuantMasterGrid title="주문 마스터 목록" :headers="masterGridHeaders" :items="showcaseRowData" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -296,6 +296,13 @@ const domainBarcode = ref('8801234567890');
|
|||||||
const aiValue = ref('');
|
const aiValue = ref('');
|
||||||
|
|
||||||
// AG Grid Data
|
// 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([
|
const showcaseColumnDefs = ref([
|
||||||
{ field: 'orderNo', headerName: '주문번호', width: 140 },
|
{ field: 'orderNo', headerName: '주문번호', width: 140 },
|
||||||
{ field: 'customerName', headerName: '거래처명', width: 180 },
|
{ field: 'customerName', headerName: '거래처명', width: 180 },
|
||||||
|
|||||||
Reference in New Issue
Block a user