ทะเบียนประวัติ: เพิ่มกดปุ่มEdit

This commit is contained in:
oat_dev 2024-03-12 15:37:04 +07:00
parent 5f07146a88
commit 7e0449843f
2 changed files with 28 additions and 10 deletions

View file

@ -414,7 +414,11 @@ watch(
</template>
<template v-slot:body="props" v-if="mode === 'table'">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.id">
<q-td
v-for="col in props.cols"
:key="col.id"
@click="addDataDialog = true"
>
<div
v-if="
col.name === 'startDate' ||
@ -437,7 +441,9 @@ watch(
size="14px"
icon="mdi-history"
@click="() => (historyDialog = true)"
/>
>
<q-tooltip>ประวแกไขประวการศกษา</q-tooltip>
</q-btn>
</q-td>
</q-tr>
</template>
@ -447,8 +453,14 @@ watch(
>
<q-card bordered>
<q-card-actions align="right">
<q-btn flat round color="primary" icon="edit">
<q-tooltip>แกไขขอม</q-tooltip>
<q-btn
flat
round
color="primary"
icon="edit"
@click="addDataDialog = true"
>
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
<q-btn
flat
@ -457,7 +469,7 @@ watch(
icon="history"
@click="historyDialog = true"
>
<q-tooltip>ประวนทกวนทไมไดบเงนเดอนฯ</q-tooltip>
<q-tooltip>ประวแกไขประวการศกษา</q-tooltip>
</q-btn>
</q-card-actions>
<q-separator />

View file

@ -228,7 +228,7 @@ async function onSubmit() {
</template>
<template v-slot:body="props" v-if="mode === 'table'">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.id">
<q-td v-for="col in props.cols" :key="col.id" @click="dialog = true">
<div>{{ col.value ? col.value : "-" }}</div>
</q-td>
<q-td auto-width>
@ -252,8 +252,14 @@ async function onSubmit() {
>
<q-card bordered>
<q-card-actions align="right">
<q-btn flat round color="primary" icon="edit">
<q-tooltip>แกไขขอม</q-tooltip>
<q-btn
flat
round
color="primary"
icon="edit"
@click="dialog = true"
>
<q-tooltip>แกไขขอม</q-tooltip>
</q-btn>
<q-btn
flat
@ -262,7 +268,7 @@ async function onSubmit() {
icon="history"
@click="historyDialog = true"
>
<q-tooltip>ประวนทกวนทไมไดบเงนเดอนฯ</q-tooltip>
<q-tooltip>ประวแกไขความสามารถพเศษ</q-tooltip>
</q-btn>
</q-card-actions>
<q-separator />
@ -288,7 +294,7 @@ async function onSubmit() {
<dialog-header tittle="เพิ่มความสามารถพิเศษ" :close="closeDialog" />
</q-card-section>
<q-separator color="grey-4" />
<q-card-section class="col q-gutter-sm q-pr-lg">
<q-card-section class="col q-gutter-sm q-pr-md">
<div class="row q-gutter-sm q-ml-none">
<q-input
outlined