ปรับ code รายการลงเวลาปฏิบัติงาน
This commit is contained in:
parent
0ddac48605
commit
c1fce2e3c5
7 changed files with 96 additions and 61 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue