Merge branch 'develop' into devTee
This commit is contained in:
commit
c628a34959
44 changed files with 195 additions and 125 deletions
|
|
@ -76,10 +76,10 @@ const leaveTypeCode = ref<string>("");
|
|||
const profileId = ref<string>("");
|
||||
const rowId = ref<string>("");
|
||||
const formData = reactive({
|
||||
leaveTypeId: "",
|
||||
leaveYear: new Date().getFullYear(),
|
||||
leaveDays: "",
|
||||
leaveDaysUsed: "",
|
||||
leaveTypeId: "", //ประเภทการลา
|
||||
leaveYear: new Date().getFullYear(), //ปี
|
||||
leaveDays: "", //วันลาที่ยกมา
|
||||
leaveDaysUsed: "", //วันลาที่ใช้ไป
|
||||
});
|
||||
const leaveTypeOptions = ref<DataLeaveType[]>([]);
|
||||
const leaveTypeOptionsMain = ref<DataLeaveType[]>([]);
|
||||
|
|
@ -141,6 +141,10 @@ async function fetchDataPerson() {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันกำหนดค่าของ formData เมื่อมีการแก้ไขข้อมูล
|
||||
* @param data ข้อมูลที่ต้องการแก้ไข
|
||||
*/
|
||||
async function defineDataLeaveBeginning(data: DataLeaveBeginning) {
|
||||
profileId.value = data.profileId;
|
||||
rowId.value = data.id;
|
||||
|
|
@ -235,6 +239,7 @@ function classInput(val: boolean) {
|
|||
};
|
||||
}
|
||||
|
||||
/** Hook*/
|
||||
watch(
|
||||
() => formFilter.pageSize,
|
||||
() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue