fix bug รายการคำสั่ง

This commit is contained in:
Warunee Tamkoo 2023-12-21 18:02:35 +07:00
parent 4cbf6fa473
commit dfbf639272

View file

@ -235,19 +235,21 @@ const redirectToPage = (id?: string, status?: string) => {
</q-tr>
</template>
<template v-slot:body="props">
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="redirectToPage(props.row.orderId, props.row.OrderStatus)"
>
<div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}
</div>
<div>
{{ col.value }}
</div>
</q-td>
<q-tr :props="props" class="cursor-pointer">
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="redirectToPage(props.row.orderId, props.row.OrderStatus)"
>
<div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}
</div>
<div>
{{ col.value }}
</div>
</q-td>
</q-tr>
</template>
</d-table>
</template>