ปรับรายการลาออก และ dialog confrim
This commit is contained in:
parent
c1db58e570
commit
19da1d284a
5 changed files with 558 additions and 519 deletions
|
|
@ -13,7 +13,7 @@ const type = ref<string>("");
|
|||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm, date2Thai, messageError } = mixin;
|
||||
const reason = ref<string>('')
|
||||
const reason = ref<string>("");
|
||||
|
||||
/*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */
|
||||
function validateForm() {
|
||||
|
|
@ -26,17 +26,15 @@ function close() {
|
|||
}
|
||||
|
||||
function onSubmit() {
|
||||
dialogConfirm($q,()=>{
|
||||
modal.value = false
|
||||
reason.value = "";
|
||||
},"ยืนยันการยกเลิก", "ต้องการยืนยันการยกเลิกกนี้ใช่หรือไม่?")
|
||||
}
|
||||
|
||||
function inputEdit(val: boolean) {
|
||||
return {
|
||||
"full-width cursor-pointer inputgreen ": val,
|
||||
"full-width cursor-pointer inputgreen": !val,
|
||||
};
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => {
|
||||
modal.value = false;
|
||||
reason.value = "";
|
||||
},
|
||||
"ยืนยันการยกเลิก",
|
||||
"ต้องการยืนยันการยกเลิกกนี้ใช่หรือไม่?"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -48,13 +46,13 @@ function inputEdit(val: boolean) {
|
|||
|
||||
<q-card-section class="scroll" style="max-height: 70vh">
|
||||
<div class="q-gutter-y-sm">
|
||||
<q-input
|
||||
<q-input
|
||||
label="เหตุผลที่ขอยกเลิกการลาออก"
|
||||
v-model="reason"
|
||||
outlined
|
||||
dense
|
||||
type="textarea"
|
||||
/>
|
||||
/>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue