fix(retire-old): resetfilter year-1
This commit is contained in:
parent
1b67db241b
commit
d38f488935
1 changed files with 10 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue";
|
||||
import { ref, onMounted, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -22,12 +22,18 @@ const { pagination, params, onRequest } = usePagination(
|
|||
fetchDataRetirement
|
||||
);
|
||||
|
||||
/** Title Page */
|
||||
const titlePage = computed(() => {
|
||||
return `ข้อมูลผู้พ้นราชการก่อนปี ${new Date().getFullYear() + 543}`;
|
||||
});
|
||||
|
||||
const optionStatusMain = ref<DataOption[]>([
|
||||
{ name: "ข้าราชการ", id: "officer" },
|
||||
{ name: "ลูกจ้างชั่วคราว", id: "employee" },
|
||||
]);
|
||||
|
||||
const optionStatus = ref<DataOption[]>(optionStatusMain.value);
|
||||
|
||||
/** Filter */
|
||||
const filter = ref<FilterRetirementOld>({
|
||||
type: "officer",
|
||||
retireYear: new Date().getFullYear() - 1,
|
||||
|
|
@ -172,7 +178,7 @@ function searchData() {
|
|||
function resetFilter() {
|
||||
filter.value = {
|
||||
type: "officer",
|
||||
retireYear: new Date().getFullYear(),
|
||||
retireYear: new Date().getFullYear() - 1,
|
||||
citizenID: "",
|
||||
firstNameTH: "",
|
||||
lastNameTH: "",
|
||||
|
|
@ -186,7 +192,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
ข้อมูลผู้พ้นราชการก่อนปี 2568
|
||||
{{ titlePage }}
|
||||
</div>
|
||||
|
||||
<!-- Filter Section -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue