ปรับสิทธิ์

This commit is contained in:
STW_TTTY\stwtt 2024-08-19 13:25:17 +07:00
parent 3985b7255e
commit fd42965fa0
6 changed files with 21 additions and 22 deletions

View file

@ -438,6 +438,7 @@ onMounted(() => {
<q-tr :props="props">
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsGet"
flat
round
dense

View file

@ -348,7 +348,10 @@ onMounted(() => {
<q-space />
<q-btn
v-if="formFilter.root !== null && checkPermission($route)?.attrIsGet !== false"
v-if="
formFilter.root !== null &&
checkPermission($route)?.attrIsGet !== false
"
flat
round
dense
@ -432,7 +435,7 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width v-if="checkPermission($route)?.attrIsGet"></q-th>
<q-th auto-width></q-th>
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
@ -441,8 +444,9 @@ onMounted(() => {
<template v-slot:body="props">
<q-tr :props="props">
<q-td auto-width v-if="checkPermission($route)?.attrIsGet">
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsGet"
flat
round
dense
@ -453,11 +457,7 @@ onMounted(() => {
<q-tooltip>รายละเอยด</q-tooltip>
</q-btn>
</q-td>
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div class="table_ellipsis">
{{ col.value ? col.value : "-" }}
</div>