แก้ popup วินัย กรรมการ

This commit is contained in:
setthawutttty 2024-01-19 14:12:08 +07:00
parent 7c79629bd1
commit f24c737c0b

View file

@ -49,22 +49,19 @@ async function submit() {
if (myForm.value !== null) {
myForm.value.validate().then((success) => {
if (success) {
dialogConfirm(
$q,
async () => {
await props.save(props.id, duty.value, resolution.value);
duty.value = "";
resolution.value = "";
}
);
dialogConfirm($q, async () => {
await props.save(props.id, duty.value, resolution.value);
duty.value = "";
resolution.value = "";
});
}
});
}
}
watch(props, () => {
duty.value = props?.duty;
resolution.value = props?.command;
duty.value = props?.duty === "-" ? "" : props.duty;
resolution.value = props?.command === "-" ? "" : props.command;
});
</script>
@ -81,7 +78,7 @@ watch(props, () => {
dense
class="col-12 q-mb-sm"
debounce="300"
placeholder="หน้าที่"
label="หน้าที่"
:rules="[(val) => !!val || `กรุณากรอกหน้าที่`]"
hide-bottom-space
/>
@ -91,7 +88,7 @@ watch(props, () => {
dense
class="col-12 q-mb-sm"
debounce="300"
placeholder="มติ/คำสั่ง"
label="มติ/คำสั่ง"
:rules="[(val) => !!val || `กรุณากรอก มติ/คำสั่ง`]"
hide-bottom-space
/>