edit permission of placement pass

This commit is contained in:
Warunee Tamkoo 2024-08-09 15:24:11 +07:00
parent 63a1b2c629
commit 015b861340
5 changed files with 98 additions and 162 deletions

View file

@ -539,15 +539,28 @@ onMounted(async () => {
direction-links
></q-pagination>
</template>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th v-for="col in props.cols" :key="col.name" :props="props">
{{ col.label }}
</q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr
:props="props"
class="cursor-pointer"
@click="
checkPermission($route)?.attrIsGet &&
redirectToPage(props.row.id)
"
>
<q-tr :props="props">
<q-td auto-width>
<q-icon
v-if="checkPermission($route)?.attrIsList"
name="mdi-eye"
size="sm"
color="info"
class="cursor-pointer"
@click="() => redirectToPage(props.row.id)"
>
<q-tooltip>รายละเอยด</q-tooltip>
</q-icon>
</q-td>
<q-td key="id" :props="props">
{{ props.rowIndex + 1 }}
</q-td>