ปรับ code รายการลงเวลาปฏิบัติงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-24 09:48:30 +07:00
parent 0ddac48605
commit c1fce2e3c5
7 changed files with 96 additions and 61 deletions

View file

@ -48,13 +48,6 @@ const formData = reactive<FormDetail>({
fullName: "",
checkOutDescription: "",
});
watch(props, () => {
if (props.modal) {
if (props.detail) {
fetchDetailByid(props.detail.id);
}
}
});
/**
* function เรยกรายการลงเวลาตาม
@ -105,6 +98,13 @@ async function fetchDetailByid(id: string) {
function colsePopup() {
props.colse ? props.colse() : false;
}
watch(
() => props.modal,
() => {
props.modal === true && props.detail && fetchDetailByid(props.detail.id);
}
);
</script>
<template>