ทะเบียนประวัติ => ข้อมูลผลงาน,ข้อมูลอื่นๆ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-05 14:22:14 +07:00
parent 3f602394bc
commit 82463dbb00
9 changed files with 180 additions and 232 deletions

View file

@ -303,8 +303,8 @@ onMounted(() => {
flat
round
dense
icon="mdi-pencil-outline"
color="primary"
icon="edit"
color="edit"
@click="onClickEdit"
>
<q-tooltip>แกไขขอม</q-tooltip>
@ -314,7 +314,7 @@ onMounted(() => {
round
dense
icon="mdi-history"
color="info"
color="deep-purple"
@click="onClickHistory"
>
<q-tooltip>ประวแกไขขอมลลกจางชวคราว</q-tooltip>
@ -614,7 +614,7 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props">
<q-td v-for="col in props.cols" :key="col.id">
<div>
{{ col.value ? col.value : "-" }}

View file

@ -290,8 +290,6 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width v-if="checkPermission($route)?.attrIsUpdate" />
<q-th auto-width v-if="checkPermission($route)?.attrIsDelete" />
<q-th auto-width />
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
@ -299,21 +297,31 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer" style="height: 40px">
<q-td v-if="checkPermission($route)?.attrIsUpdate">
<q-tr :props="props">
<q-td auto-width>
<q-btn
dense
flat
round
color="primary"
icon="mdi-pencil"
color="deep-purple"
icon="mdi-history"
@click="onClickHistory(props.row.id)"
>
<q-tooltip>ประวอมลการจาง </q-tooltip>
</q-btn>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
dense
flat
round
color="edit"
icon="edit"
@click="onOpenDialog(true, props.row.id)"
>
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
</q-td>
<q-td v-if="checkPermission($route)?.attrIsDelete">
<q-btn
v-if="checkPermission($route)?.attrIsDelete"
dense
flat
round
@ -324,18 +332,7 @@ onMounted(() => {
<q-tooltip>ลบขอม</q-tooltip></q-btn
>
</q-td>
<q-td>
<q-btn
dense
flat
round
color="info"
icon="mdi-history"
@click="onClickHistory(props.row.id)"
>
<q-tooltip>ประวอมลการจาง </q-tooltip>
</q-btn>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div>
{{ col.value ? col.value : "-" }}