โครงสร้างอัตรากำลัง => ปรับ form Dialog

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-11 13:57:52 +07:00
parent 65647f79f0
commit a2b8dfa308
4 changed files with 14 additions and 10 deletions

View file

@ -121,7 +121,7 @@ watch(
" "
/> />
<q-separator /> <q-separator />
<q-card-section class="q-pt-none q-pa-sm"> <q-card-section>
<d-table <d-table
flat flat
bordered bordered

View file

@ -95,14 +95,13 @@ watch(
<template> <template>
<q-dialog v-model="modal" persistent> <q-dialog v-model="modal" persistent>
<q-card style="min-width: 50vw"> <q-card style="min-width: 50vw">
<!-- <form @submit.prevent="validateForm"> -->
<DialogHeader <DialogHeader
:tittle="`จัดลำดับ${type == 0 ? 'หน่วยงาน' : 'ส่วนราชการ'}`" :tittle="`จัดลำดับ${type == 0 ? 'หน่วยงาน' : 'ส่วนราชการ'}`"
:close="() => (modal = false)" :close="() => (modal = false)"
/> />
<q-separator /> <q-separator />
<q-card-section> <q-card-section style="max-height: 70vh" class="scroll">
<q-table <q-table
v-draggable-table="{ v-draggable-table="{
options: { options: {
@ -124,10 +123,11 @@ watch(
/> />
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white text-teal"> <q-card-actions align="right">
<q-btn type="submit" :label="`บันทึก`" color="public" @click="save" /> <q-btn type="submit" :label="`บันทึก`" color="public" @click="save" >
<q-tooltip>นทกขอม</q-tooltip>
</q-btn>
</q-card-actions> </q-card-actions>
<!-- </form> -->
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -396,8 +396,10 @@ function clearForm() {
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white text-teal"> <q-card-actions align="right">
<q-btn label="สืบทอดตำแหน่ง" color="public" @click="onClickConfirm" /> <q-btn label="สืบทอดตำแหน่ง" color="public" @click="onClickConfirm">
<q-tooltip>บทอดตำแหน</q-tooltip></q-btn
>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>

View file

@ -393,8 +393,10 @@ function clearForm() {
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white text-teal"> <q-card-actions align="right">
<q-btn label="สืบทอดตำแหน่ง" color="public" @click="onClickConfirm" /> <q-btn label="สืบทอดตำแหน่ง" color="public" @click="onClickConfirm">
<q-tooltip>บทอดตำแหน</q-tooltip>
</q-btn>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>