แก้ เปลี่ยนฟิล

This commit is contained in:
setthawutttty 2025-04-29 09:32:53 +07:00
parent a8657eabd8
commit ba72ef35e6
4 changed files with 10 additions and 2 deletions

View file

@ -132,6 +132,7 @@ const formData = reactive<FremData>({
dear: "",
leaveRange: "",
profileType: "",
commanderPosition: "",
leaveRangeEnd: "",
});
@ -367,6 +368,7 @@ async function fetchDetailLeave(paramsId: string) {
formData.leaveSubTypeName = data.leaveSubTypeName;
formData.leaveRange = data.leaveRange;
formData.commanderPosition = data.commanderPosition;
formData.leaveRangeEnd = data.leaveRangeEnd;
rows.value = {
commanders: data.commanders,

View file

@ -101,7 +101,6 @@ function getSearch() {
}
async function getData() {
console.log(props.idCheck);
const url =
props.type == "COMMANDER"
? config.API.workflowCommanderOperate
@ -180,6 +179,12 @@ watch(
getSearch();
}
);
watch(()=>modal.value,()=>{
if(modal.value){
getSearch()
}
})
</script>
<template>
<q-dialog v-model="modal" persistent>

View file

@ -32,7 +32,7 @@ const props = defineProps({
</div>
<div class="row">
<div class="col-4 text-grey-8">เรยน</div>
<div class="col">{{ props.data.dear }}</div>
<div class="col">{{ props.data.commanderPosition }}</div>
</div>
<div class="row">
<div class="col-4 text-grey-8">อผนขอ</div>

View file

@ -95,6 +95,7 @@ interface FremData {
dear: string;
leaveRange?: string;
profileType: string;
commanderPosition: string;
leaveRangeEnd: string;
}