ปรับรายการลาออก และ dialog confrim

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-21 10:21:38 +07:00
parent c1db58e570
commit 19da1d284a
5 changed files with 558 additions and 519 deletions

View file

@ -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 />