ทะเบียนประวัติ: เพิ่มกดปุ่มEdit
This commit is contained in:
parent
5f07146a88
commit
7e0449843f
2 changed files with 28 additions and 10 deletions
|
|
@ -414,7 +414,11 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props" v-if="mode === 'table'">
|
<template v-slot:body="props" v-if="mode === 'table'">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<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
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
col.name === 'startDate' ||
|
col.name === 'startDate' ||
|
||||||
|
|
@ -437,7 +441,9 @@ watch(
|
||||||
size="14px"
|
size="14px"
|
||||||
icon="mdi-history"
|
icon="mdi-history"
|
||||||
@click="() => (historyDialog = true)"
|
@click="() => (historyDialog = true)"
|
||||||
/>
|
>
|
||||||
|
<q-tooltip>ประวัติแก้ไขประวัติการศึกษา</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -447,8 +453,14 @@ watch(
|
||||||
>
|
>
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn flat round color="primary" icon="edit">
|
<q-btn
|
||||||
<q-tooltip>แก่ไขข้อมุล</q-tooltip>
|
flat
|
||||||
|
round
|
||||||
|
color="primary"
|
||||||
|
icon="edit"
|
||||||
|
@click="addDataDialog = true"
|
||||||
|
>
|
||||||
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
|
|
@ -457,7 +469,7 @@ watch(
|
||||||
icon="history"
|
icon="history"
|
||||||
@click="historyDialog = true"
|
@click="historyDialog = true"
|
||||||
>
|
>
|
||||||
<q-tooltip>ประวัติบันทึกวันที่ไม่ได้รับเงินเดือนฯ</q-tooltip>
|
<q-tooltip>ประวัติแก้ไขประวัติการศึกษา</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ async function onSubmit() {
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props" v-if="mode === 'table'">
|
<template v-slot:body="props" v-if="mode === 'table'">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<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>
|
<div>{{ col.value ? col.value : "-" }}</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
|
|
@ -252,8 +252,14 @@ async function onSubmit() {
|
||||||
>
|
>
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn flat round color="primary" icon="edit">
|
<q-btn
|
||||||
<q-tooltip>แก่ไขข้อมุล</q-tooltip>
|
flat
|
||||||
|
round
|
||||||
|
color="primary"
|
||||||
|
icon="edit"
|
||||||
|
@click="dialog = true"
|
||||||
|
>
|
||||||
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
|
|
@ -262,7 +268,7 @@ async function onSubmit() {
|
||||||
icon="history"
|
icon="history"
|
||||||
@click="historyDialog = true"
|
@click="historyDialog = true"
|
||||||
>
|
>
|
||||||
<q-tooltip>ประวัติบันทึกวันที่ไม่ได้รับเงินเดือนฯ</q-tooltip>
|
<q-tooltip>ประวัติแก้ไขความสามารถพิเศษ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
@ -288,7 +294,7 @@ async function onSubmit() {
|
||||||
<dialog-header tittle="เพิ่มความสามารถพิเศษ" :close="closeDialog" />
|
<dialog-header tittle="เพิ่มความสามารถพิเศษ" :close="closeDialog" />
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator color="grey-4" />
|
<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">
|
<div class="row q-gutter-sm q-ml-none">
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue