keycloakUserId

This commit is contained in:
setthawutttty 2025-04-29 10:06:10 +07:00
parent 67a726fcdf
commit d35045f769
2 changed files with 19 additions and 9 deletions

View file

@ -14,6 +14,7 @@ const modal = defineModel<boolean>("modal", { required: true });
const props = defineProps({
type: String,
profileType: String,
keycloakUserId: String,
fetchDetailLeave: Function,
idCheck: Array,
});
@ -112,6 +113,7 @@ async function getData() {
page: pagination.value.page,
keyword: keyword.value,
isAct: isAct.value,
keycloakUserId: props.keycloakUserId,
})
.then(async (res) => {
const data = res.data.result;
@ -180,11 +182,14 @@ watch(
}
);
watch(()=>modal.value,()=>{
if(modal.value){
getSearch()
watch(
() => modal.value,
() => {
if (modal.value) {
getSearch();
}
}
})
);
</script>
<template>
<q-dialog v-model="modal" persistent>