diff --git a/src/api/leave/api.leave.ts b/src/api/leave/api.leave.ts index 7ef7858..29515f2 100644 --- a/src/api/leave/api.leave.ts +++ b/src/api/leave/api.leave.ts @@ -2,6 +2,7 @@ import env from "../index" const retirementResign = `${env.API_URI}/retirement` const leave = `${env.API_URI}/leave` +const holiday = `${env.API_URI}/metadata/holiday/` export default { listUser: () => `${retirementResign}/resign/user`, @@ -24,4 +25,6 @@ export default { leaveCheck: () => `${leave}/user/check`, leaveReport: (id: string) => `${leave}/report/${id}`, leaveSendReport: () => `${leave}/report-template/docx`, + + listHolidayHistoryYearMonth: (year: number, month: number) => `${holiday}${year}/${month}`, } diff --git a/src/modules/05_leave/components/Calendar.vue b/src/modules/05_leave/components/Calendar.vue index e5b8307..636acd1 100644 --- a/src/modules/05_leave/components/Calendar.vue +++ b/src/modules/05_leave/components/Calendar.vue @@ -1,153 +1,184 @@ - - - - - - - - - {{ item.name }} - - - - - - + + + + + + + + + {{ item.name }} + + + + + + - - - - - - - - - {{ year + 543 }} - {{ - parseInt(value + 543) - }} - - - - - - - - - - - + + + + + + + + + {{ year + 543 }} + {{ parseInt(value + 543) }} + + + + + + + + + + - - - - - - {{ arg.event.title }} - - - - - - - - - - - การลาของฉัน - - - - การลาของบุคคลอื่น - - - - - + + + + + + {{ arg.event.title }} + + + + + + + + + + + วันหยุด + + + + การลาของฉัน + + + + การลาของบุคคลอื่น + + + + + - + diff --git a/src/modules/05_leave/components/DialogDetail.vue b/src/modules/05_leave/components/DialogDetail.vue index fc1cd43..46cc9da 100644 --- a/src/modules/05_leave/components/DialogDetail.vue +++ b/src/modules/05_leave/components/DialogDetail.vue @@ -1,241 +1,270 @@ - - - - {{ titleMain }}{{ titleName }} - - - - - - - - - + + + + {{ titleMain }}{{ titleName }} + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - {{ titleMainCancle }}{{ titleName }} - - - - - - - - - - - - - - + + + + {{ titleMainCancle }}{{ titleName }} + + + + + + + + + + + + + + + diff --git a/src/modules/05_leave/components/FormLeave/01_SickForm.vue b/src/modules/05_leave/components/FormLeave/01_SickForm.vue new file mode 100644 index 0000000..62fe770 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/01_SickForm.vue @@ -0,0 +1,509 @@ + + + + + + + กรอกข้อมูล + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/03_Birth.vue b/src/modules/05_leave/components/FormLeave/03_Birth.vue new file mode 100644 index 0000000..a20752f --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/03_Birth.vue @@ -0,0 +1,422 @@ + + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/04_HelpWifeBirthForm.vue b/src/modules/05_leave/components/FormLeave/04_HelpWifeBirthForm.vue new file mode 100644 index 0000000..ec398eb --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/04_HelpWifeBirthForm.vue @@ -0,0 +1,507 @@ + + + + + + กรอกข้อมูล + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/05_VacationForm.vue b/src/modules/05_leave/components/FormLeave/05_VacationForm.vue new file mode 100644 index 0000000..4ef27e3 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/05_VacationForm.vue @@ -0,0 +1,501 @@ + + + + + + กรอกข้อมูล + + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/06_OrdinationForm.vue b/src/modules/05_leave/components/FormLeave/06_OrdinationForm.vue new file mode 100644 index 0000000..2b80f39 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/06_OrdinationForm.vue @@ -0,0 +1,671 @@ + + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + เคยบวชหรือไม่ + + + + + + + สถานที่บวช + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + สถานที่จำพรรษา + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/07_HajjForm.vue b/src/modules/05_leave/components/FormLeave/07_HajjForm.vue new file mode 100644 index 0000000..c73e3e2 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/07_HajjForm.vue @@ -0,0 +1,442 @@ + + + + + + กรอกข้อมูล + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + เคยไปประกอบพิธีฮัจญ์หรือไม่ + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/08_MilitaryForm.vue b/src/modules/05_leave/components/FormLeave/08_MilitaryForm.vue new file mode 100644 index 0000000..5de9cec --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/08_MilitaryForm.vue @@ -0,0 +1,493 @@ + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/09_StudyForm.vue b/src/modules/05_leave/components/FormLeave/09_StudyForm.vue new file mode 100644 index 0000000..91a4072 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/09_StudyForm.vue @@ -0,0 +1,646 @@ + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/10_TrainForm.vue b/src/modules/05_leave/components/FormLeave/10_TrainForm.vue new file mode 100644 index 0000000..3a23e6f --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/10_TrainForm.vue @@ -0,0 +1,622 @@ + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/11_WorkInternationalForm.vue b/src/modules/05_leave/components/FormLeave/11_WorkInternationalForm.vue new file mode 100644 index 0000000..100ec11 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/11_WorkInternationalForm.vue @@ -0,0 +1,461 @@ + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + + ดาวน์โหลด/อัปโหลดแบบฟอร์ม + + + + + + + + ดาวน์โหลด + + + + + + + + อัปโหลด + + + + + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + + diff --git a/src/modules/05_leave/components/FormLeave/12_FollowSpouseForm.vue b/src/modules/05_leave/components/FormLeave/12_FollowSpouseForm.vue new file mode 100644 index 0000000..58d292b --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/12_FollowSpouseForm.vue @@ -0,0 +1,681 @@ + + + + + + กรอกข้อมูล + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ประวัติการลาติดตามคู่สมรสครั้งสุดท้าย + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.name }} + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + diff --git a/src/modules/05_leave/components/FormLeave/13_RehabilitationForm.vue b/src/modules/05_leave/components/FormLeave/13_RehabilitationForm.vue new file mode 100644 index 0000000..aa10f03 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/13_RehabilitationForm.vue @@ -0,0 +1,437 @@ + + + + + + กรอกข้อมูล + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + เอกสารเพิ่มเติม + + + + + + + + {{ file.fileName }} + + + + + + + + + + + + + + + + ดาวน์โหลด/อัปโหลดแบบฟอร์ม + + + + + + + + ดาวน์โหลด + + + + + + + + อัปโหลด + + + + + + + + + + + + + + + + + + บันทึกแบบร่าง + ยื่นใบลา + + + + diff --git a/src/modules/05_leave/components/FormLeave/Form.vue b/src/modules/05_leave/components/FormLeave/Form.vue new file mode 100644 index 0000000..6e62e10 --- /dev/null +++ b/src/modules/05_leave/components/FormLeave/Form.vue @@ -0,0 +1,171 @@ + + + + + + + + {{ year + 543 }} + + + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/05_leave/components/Forms/01_SickForm.vue b/src/modules/05_leave/components/Forms/01_SickForm.vue deleted file mode 100644 index 99693c6..0000000 --- a/src/modules/05_leave/components/Forms/01_SickForm.vue +++ /dev/null @@ -1,441 +0,0 @@ - - - - - - - กรอกข้อมูล - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/03_Birth.vue b/src/modules/05_leave/components/Forms/03_Birth.vue deleted file mode 100644 index 74a8348..0000000 --- a/src/modules/05_leave/components/Forms/03_Birth.vue +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/04_HelpWifeBirthForm.vue b/src/modules/05_leave/components/Forms/04_HelpWifeBirthForm.vue deleted file mode 100644 index 5c64c58..0000000 --- a/src/modules/05_leave/components/Forms/04_HelpWifeBirthForm.vue +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/05_VacationForm.vue b/src/modules/05_leave/components/Forms/05_VacationForm.vue deleted file mode 100644 index 2fed01c..0000000 --- a/src/modules/05_leave/components/Forms/05_VacationForm.vue +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/06_OrdinationForm.vue b/src/modules/05_leave/components/Forms/06_OrdinationForm.vue deleted file mode 100644 index 4fb6d86..0000000 --- a/src/modules/05_leave/components/Forms/06_OrdinationForm.vue +++ /dev/null @@ -1,545 +0,0 @@ - - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - เคยบวชหรือไม่ - - - - - - สถานที่บวช - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - สถานที่จำพรรษา - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/07_HajjForm.vue b/src/modules/05_leave/components/Forms/07_HajjForm.vue deleted file mode 100644 index 4b5327c..0000000 --- a/src/modules/05_leave/components/Forms/07_HajjForm.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - เคยไปประกอบพิธีฮัจญ์หรือไม่ - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/08_MilitaryForm.vue b/src/modules/05_leave/components/Forms/08_MilitaryForm.vue deleted file mode 100644 index 3618973..0000000 --- a/src/modules/05_leave/components/Forms/08_MilitaryForm.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/09_StudyForm.vue b/src/modules/05_leave/components/Forms/09_StudyForm.vue deleted file mode 100644 index c11e9cc..0000000 --- a/src/modules/05_leave/components/Forms/09_StudyForm.vue +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/10_TrainForm.vue b/src/modules/05_leave/components/Forms/10_TrainForm.vue deleted file mode 100644 index 23e2d60..0000000 --- a/src/modules/05_leave/components/Forms/10_TrainForm.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/11_WorkInternationalForm.vue b/src/modules/05_leave/components/Forms/11_WorkInternationalForm.vue deleted file mode 100644 index 50c4ef2..0000000 --- a/src/modules/05_leave/components/Forms/11_WorkInternationalForm.vue +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - ดาวน์โหลด/อัปโหลดแบบฟอร์ม - - - - - - ดาวน์โหลด - - - - - - อัปโหลด - - - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - - diff --git a/src/modules/05_leave/components/Forms/12_FollowSpouseForm.vue b/src/modules/05_leave/components/Forms/12_FollowSpouseForm.vue deleted file mode 100644 index 3f81ef6..0000000 --- a/src/modules/05_leave/components/Forms/12_FollowSpouseForm.vue +++ /dev/null @@ -1,581 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ประวัติการลาติดตามคู่สมรสครั้งสุดท้าย - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/Forms/13_RehabilitationForm.vue b/src/modules/05_leave/components/Forms/13_RehabilitationForm.vue deleted file mode 100644 index 341c32c..0000000 --- a/src/modules/05_leave/components/Forms/13_RehabilitationForm.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - - ดาวน์โหลด/อัปโหลดแบบฟอร์ม - - - - - - ดาวน์โหลด - - - - - - อัปโหลด - - - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - - diff --git a/src/modules/05_leave/components/Forms/Form.vue b/src/modules/05_leave/components/Forms/Form.vue deleted file mode 100644 index bbe45a9..0000000 --- a/src/modules/05_leave/components/Forms/Form.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - diff --git a/src/modules/05_leave/components/ListView.vue b/src/modules/05_leave/components/ListView.vue index 0ca26b1..cea050d 100644 --- a/src/modules/05_leave/components/ListView.vue +++ b/src/modules/05_leave/components/ListView.vue @@ -176,6 +176,13 @@ onMounted(async () => { + { { currentPage.value, () => pagination.value.rowsPerPage], () => { updatePagination(currentPage.value, pagination.value.rowsPerPage); }); + diff --git a/src/modules/05_leave/components/formEdit/Form.vue b/src/modules/05_leave/components/formEdit/Form.vue deleted file mode 100644 index 92a6e4a..0000000 --- a/src/modules/05_leave/components/formEdit/Form.vue +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Birth.vue b/src/modules/05_leave/components/formEdit/formEdit_Birth.vue deleted file mode 100644 index 128b12c..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Birth.vue +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_FollowSpouse.vue b/src/modules/05_leave/components/formEdit/formEdit_FollowSpouse.vue deleted file mode 100644 index 7e1fa0a..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_FollowSpouse.vue +++ /dev/null @@ -1,570 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ประวัติการลาติดตามคู่สมรสครั้งสุดท้าย - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Hajj.vue b/src/modules/05_leave/components/formEdit/formEdit_Hajj.vue deleted file mode 100644 index 8a85f9a..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Hajj.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - เคยไปประกอบพิธีฮัจญ์หรือไม่ - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_HelpWifeBirth.vue b/src/modules/05_leave/components/formEdit/formEdit_HelpWifeBirth.vue deleted file mode 100644 index f78d8f9..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_HelpWifeBirth.vue +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Military.vue b/src/modules/05_leave/components/formEdit/formEdit_Military.vue deleted file mode 100644 index 899c007..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Military.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Ordinationvue.vue b/src/modules/05_leave/components/formEdit/formEdit_Ordinationvue.vue deleted file mode 100644 index 8813b83..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Ordinationvue.vue +++ /dev/null @@ -1,545 +0,0 @@ - - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - เคยบวชหรือไม่ - - - - - - สถานที่บวช - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - สถานที่จำพรรษา - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Rehabilitation.vue b/src/modules/05_leave/components/formEdit/formEdit_Rehabilitation.vue deleted file mode 100644 index 1dc1ce7..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Rehabilitation.vue +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - แก้ไขข้อมูล - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - - ดาวน์โหลด/อัปโหลดแบบฟอร์ม - - - - - - ดาวน์โหลด - - - - - - อัปโหลด - - - - - - - - - อัปโหลด - - - - - - - - - - บันทึกแบบร่าง - - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Sick.vue b/src/modules/05_leave/components/formEdit/formEdit_Sick.vue deleted file mode 100644 index 8ce898d..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Sick.vue +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - - กรอกข้อมูล{{ dataStore.leaveLast }} - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Study.vue b/src/modules/05_leave/components/formEdit/formEdit_Study.vue deleted file mode 100644 index f7d0b2a..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Study.vue +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.fileName }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_Vacation.vue b/src/modules/05_leave/components/formEdit/formEdit_Vacation.vue deleted file mode 100644 index f6a0d30..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_Vacation.vue +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - บันทึกแบบร่าง - - - diff --git a/src/modules/05_leave/components/formEdit/formEdit_WorkInternational.vue b/src/modules/05_leave/components/formEdit/formEdit_WorkInternational.vue deleted file mode 100644 index bd98c5c..0000000 --- a/src/modules/05_leave/components/formEdit/formEdit_WorkInternational.vue +++ /dev/null @@ -1,407 +0,0 @@ - - - - - - กรอกข้อมูล - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - {{ year + 543 }} - - - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - เอกสารเพิ่มเติม - - - - - - - {{ file.name }} - - - - - - - - - - - - - - ดาวน์โหลด/อัปโหลดแบบฟอร์ม - - - - - - ดาวน์โหลด{{ formDataWorkInternational.typeId }} - - - - - - อัปโหลด - - - - - - - - - อัปโหลด - - - - - - - - - - บันทึกแบบร่าง - - - - diff --git a/src/modules/05_leave/interface/index/main.ts b/src/modules/05_leave/interface/index/main.ts index be276d1..d1ff669 100644 --- a/src/modules/05_leave/interface/index/main.ts +++ b/src/modules/05_leave/interface/index/main.ts @@ -1,5 +1,3 @@ -import type { S } from "@fullcalendar/core/internal-common" - interface OptionData { id: string | undefined name: string | undefined diff --git a/src/modules/05_leave/store.ts b/src/modules/05_leave/store.ts index cd8885b..105f7a4 100644 --- a/src/modules/05_leave/store.ts +++ b/src/modules/05_leave/store.ts @@ -80,7 +80,6 @@ export const useLeaveStore = defineStore("Leave", () => { code: "LV-000", }, ]; - console.log(typeOptionsMain.value); const optionType = data.map((e: TypeLeave) => ({ id: e.id, @@ -99,6 +98,7 @@ export const useLeaveStore = defineStore("Leave", () => { /** สถานะของการลา */ const statusOptionsMain = ref([ { id: "ALL", name: "ทั้งหมด" }, + { id: "DRAFT", name: "แบบร่าง" }, { id: "NEW", name: "ใหม่" }, { id: "PENDING", name: "กำลังดำเนินการ" }, { id: "APPROVE", name: "อนุมัติ " }, @@ -133,8 +133,9 @@ export const useLeaveStore = defineStore("Leave", () => { break; } } + /** รายการประเภทการลาของ ลาไปศึกษา ฝึกอบรม ปฎิบัติการวิจัย หรือดูงาน*/ - const optionsSpecific = ref([ + const optionsSpecific = ref([ { id: "s0", name: "ลาไปศึกษาต่อ", code: "s0" }, { id: "s1", name: "ลาฝึกอบรม", code: "s1" }, { id: "s2", name: "ลาปฎิบัติการวิจัย", code: "s2" }, @@ -142,18 +143,19 @@ export const useLeaveStore = defineStore("Leave", () => { ]); /** รายการประเภทการลาของ ลาอุปสมบทหรือลาประกอบพิธีฮัจญ์*/ - const optionsOrdination = ref([ - { id: "0", name: "ลาอุปสมบท", code: "0" }, - { id: "1", name: "ลาประกอบพิธีฮัจญ์", code: "1" }, + const optionsOrdination = ref([ + { id: 'b1', name: "ลาอุปสมบท", code: 'b1' }, + { id: 'b2', name: "ลาประกอบพิธีฮัจญ์", code: 'b2' }, ]); /** data table filter & column ของรายการลา */ - const visibleColumns = ref([ + const visibleColumns = ref([ "no", "leaveTypeName", "dateSendLeave", "status", ]); + const columns = ref([ { name: "no", @@ -192,6 +194,7 @@ export const useLeaveStore = defineStore("Leave", () => { style: "font-size: 14px; width:10%;", }, ]); + /** *ฟังก์ชั่นแปลงประเภทแบบฟอร์มลา * @param item ประเภทแบบฟอร์ม @@ -265,6 +268,7 @@ export const useLeaveStore = defineStore("Leave", () => { const salaryText = ref(""); //เงินเดือนปัจจุบัน(ภาษาไทย) const leaveLast = ref(); const restDayCurrentTotal = ref(""); + //ดึงข้อมูล profile จาก API async function fetchProfile() { await http @@ -286,10 +290,7 @@ export const useLeaveStore = defineStore("Leave", () => { dateAppoint.value = data.dateAppoint; salary.value = data.salary; salaryText.value = data.salaryText; - leaveLast.value = - date2Thai(data.leaveLast) !== "0001-01-01T00:00:00" - ? date2Thai(data.leaveLast) - : "-"; + leaveLast.value = data.leaveLast != "0001-01-01T00:00:00" ? date2Thai(data.leaveLast) : "-"; restDayCurrentTotal.value = data.restDayCurrentTotal; }) .catch((e: any) => { @@ -297,6 +298,46 @@ export const useLeaveStore = defineStore("Leave", () => { }); } + async function fetchProfileOld(data: any) { + dateSendLeave.value = data.dateSendLeave; + typeLeave.value = data.leaveTypeName; + dear.value = data.dear; + fullName.value = data.fullName; + positionName.value = data.positionName; + positionLevelName.value = data.positionLevelName; + organizationName.value = data.organizationName; + leaveLimit.value = data.leaveLimit; + leaveTotal.value = data.leaveTotal; + leaveRemain.value = data.leaveRemain; + restDayTotalOld.value = data.restDayTotalOld; + birthDate.value = data.birthDate; + dateAppoint.value = data.dateAppoint; + salary.value = data.salary; + salaryText.value = data.salaryText; + leaveLast.value = data.leaveLast != "0001-01-01T00:00:00" ? date2Thai(data.leaveLast) : "-"; + restDayCurrentTotal.value = data.restDayCurrentTotal; + } + + function resetForm2() { + dateSendLeave.value = undefined; + leaveTypeName.value = ""; + dear.value = ""; + fullName.value = ""; + positionName.value = ""; + positionLevelName.value = ""; + organizationName.value = ""; + leaveLimit.value = 0; + leaveTotal.value = 0; + leaveRemain.value = 0; + restDayTotalOld.value = 0; + birthDate.value = undefined; + dateAppoint.value = undefined; + salary.value = 0; + salaryText.value = ""; + leaveLast.value = undefined; + restDayCurrentTotal.value = ""; + } + return { tabValue, typeOptions, @@ -340,5 +381,7 @@ export const useLeaveStore = defineStore("Leave", () => { leaveLast, restDayCurrentTotal, convertStatud, + resetForm2, + fetchProfileOld, }; }); diff --git a/src/modules/05_leave/views/AddPage.vue b/src/modules/05_leave/views/AddPage.vue index a106e1e..be16b5a 100644 --- a/src/modules/05_leave/views/AddPage.vue +++ b/src/modules/05_leave/views/AddPage.vue @@ -1,56 +1,53 @@ - - - - - ยื่นใบลา - + + + + + สร้างใบลา + - - - - - - - เลือกประเภทการลา - - - - - - - - - - + + + + + + + + เลือกประเภทการลา + + + + + + - - + + + + + + - - - - ข้อมูลการลา - - - - - - - - - - - - - - - - - - - - - - - + + + + + ข้อมูลการลา + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/05_leave/views/EditPage.vue b/src/modules/05_leave/views/EditPage.vue index c566f07..152e147 100644 --- a/src/modules/05_leave/views/EditPage.vue +++ b/src/modules/05_leave/views/EditPage.vue @@ -1,430 +1,423 @@ + - - - - - แก้ไขยื่นใบลา {{ formData.leaveTypeName }} {{ leaveId }} - - - - - - - - เลือกประเภทการลา - - - - - - - - - - + + + + + แก้ไขข้อมูลการ{{ formData.leaveTypeName }} {{ leaveId }} + + + + + + + + + เลือกประเภทการลา + + + + + + + + + + + + - - - - - - ข้อมูลการลา - - - - - - - - - - - - - - - - - - - - - - - + + + + + ข้อมูลการลา + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/05_leave/views/Main.vue b/src/modules/05_leave/views/Main.vue index 714be82..53fce09 100644 --- a/src/modules/05_leave/views/Main.vue +++ b/src/modules/05_leave/views/Main.vue @@ -1,395 +1,503 @@ - - - - - รายการลา - - + + + + + รายการลา + + - - - - - - สถิติการลา - - - - - - - - - - {{ item.value }} - - - ลาพักผ่อน - - - - - - ได้รับ - {{ item.all }} - - - - ใช้ไป - {{ item.use }} - - - - คงเหลือ - {{ item.remain }} - - - - - - - - - - - - ลาป่วย - - ใช้ไป - {{ item.use }} - - - - - - - - - - - ลากิจส่วนตัว - - ใช้ไป - {{ item.use }} - - - - - - - - - + + + + + + สถิติการลา + + + + + + + + + + {{ + item.value + }} + + + + ลาพักผ่อน + + + + + + + ได้รับ + {{ item.all }} + + + + ใช้ไป + {{ item.use }} + + + + คงเหลือ + {{ item.remain }} + + + + + + + + + + + + ลาป่วย + + ใช้ไป + {{ item.use }} + + + + + + + + + + + ลากิจส่วนตัว + + ใช้ไป + {{ item.use }} + + + + + + + + + - - - - - - - - - - ยื่นใบลา - - - - - - - - - ปฏิทิน - - - - รายการ - - - - - - - + + + + + + + + + + สร้างใบลา + + + + + + + + + ปฏิทิน + + + + รายการ + + + + + + + - - - - - - - - + + + + + + + + - - - - - ตารางสถิติการลา - - - - - - - - - - {{ col.label }} - - - - - - - - {{ props.rowIndex + 1 }} - - - {{ col.value }} - - - - - - + + + + + ตารางสถิติการลา + + + + + + + + + + {{ col.label }} + + + + + + + + {{ props.rowIndex + 1 }} + + + {{ col.value }} + + + + + + diff --git a/src/modules/06_evaluate/components/EvaluateStepMain.vue b/src/modules/06_evaluate/components/EvaluateStepMain.vue index 1556460..c4c8690 100644 --- a/src/modules/06_evaluate/components/EvaluateStepMain.vue +++ b/src/modules/06_evaluate/components/EvaluateStepMain.vue @@ -133,24 +133,24 @@ async function updateFilePDF(url: any, urlDownload: string) { urlDownloadFile.value = urlDownload; } -/** function เช็คการยื่นข้อประเมิน*/ -async function fetchCheckStatus() { - showLoader(); - await http - .get(config.API.evaluationCheckStatus()) - .then((res) => { - const data = res.data.result; - const id = - route.params.type === "expert" ? data.expertId : data.specialExpertId; - router.push(`/evaluate/detail/${route.params.type}/${id}`); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }); -} +// /** function เช็คการยื่นข้อประเมิน*/ +// async function fetchCheckStatus() { +// showLoader(); +// await http +// .get(config.API.evaluationCheckStatus()) +// .then((res) => { +// const data = res.data.result; +// const id = +// route.params.type === "expert" ? data.expertId : data.specialExpertId; +// router.push(`/evaluate/detail/${route.params.type}/${id}`); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(() => { +// hideLoader(); +// }); +// } async function fetchCheckStep(id: string) { showLoadStatus.value = false; @@ -302,8 +302,9 @@ async function saveStep1() { await http .post(config.API.evaluationCheckspec(), form) - .then(() => { - fetchCheckStatus(); + .then((res) => { + const id = res.data.result.id; + router.push(`/evaluate/detail/${route.params.type}/${id}`); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/06_evaluate/components/TableListEvaluate.vue b/src/modules/06_evaluate/components/TableListEvaluate.vue index c5bb0c2..7cb9ca6 100644 --- a/src/modules/06_evaluate/components/TableListEvaluate.vue +++ b/src/modules/06_evaluate/components/TableListEvaluate.vue @@ -66,8 +66,8 @@ const columns = ref([ }, ]); const pagination = ref({ - sortBy: "", - descending: true, + // sortBy: "", + descending: false, page: props.page, rowsPerPage: props.pageSize, });