แสดงข้อมูล ปฏิทินวันทำงาน
This commit is contained in:
parent
507763bbbf
commit
0ae36dcccb
1 changed files with 22 additions and 3 deletions
|
|
@ -56,11 +56,30 @@ function Openmodal(check: string, detail: any) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* function เรียกข้อมูลปฏิทินวันทำงาน
|
||||
* @param id profileId
|
||||
*/
|
||||
async function fetchDataCalendarWork(id: string) {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.leaveWorkByid(id))
|
||||
.then((res) => {
|
||||
dateWork.value = res.data.result.work;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
modalFix.value = true;
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
const detailByid = ref();
|
||||
function OpenmodalFix(detail: any) {
|
||||
dateWork.value = "NORMAL";
|
||||
async function OpenmodalFix(detail: any) {
|
||||
await fetchDataCalendarWork(detail.profileId);
|
||||
detailByid.value = detail;
|
||||
modalFix.value = true;
|
||||
}
|
||||
|
||||
/** Function closePopup */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue