แก้ เปลี่ยนฟิล
This commit is contained in:
parent
a8657eabd8
commit
ba72ef35e6
4 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ interface FremData {
|
|||
dear: string;
|
||||
leaveRange?: string;
|
||||
profileType: string;
|
||||
commanderPosition: string;
|
||||
leaveRangeEnd: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue