updated ทะเบียนประวัติ
This commit is contained in:
parent
d9b8791706
commit
5166d1c16a
6 changed files with 415 additions and 379 deletions
|
|
@ -1,18 +1,19 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
import { ref, reactive } from "vue";
|
||||
|
||||
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||
import type {
|
||||
DataType,
|
||||
DataLevel,
|
||||
} from "@/modules/04_registryPerson/interface/response/Main";
|
||||
import type { FormFilter } from "@/modules/04_registryPerson/interface/request/Main";
|
||||
|
||||
export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
||||
const searchTypeOption = ref<DataOption[]>([
|
||||
{ id: "fullName", name: "ชื่อ-นามสกุล" },
|
||||
{ id: "citizenId", name: "เลขประจำตัวประชาชน" },
|
||||
// { id: "posNo", name: "ตำแหน่งเลขที่" },
|
||||
{ id: "position", name: "ตำแหน่งในสายงาน" },
|
||||
{ id: "posNo", name: "ตำแหน่งเลขที่" },
|
||||
]);
|
||||
const employeeClassOps = ref<DataOption[]>([
|
||||
{ id: "officer", name: "ข้าราชการ กทม.สามัญ" },
|
||||
|
|
@ -48,6 +49,28 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
const formFilter = reactive<FormFilter>({
|
||||
page: 1,
|
||||
pageSize: 12,
|
||||
keyword: "",
|
||||
type: "officer",
|
||||
posType: "",
|
||||
posLevel: "",
|
||||
retireYear: "",
|
||||
rangeYear: { min: 0, max: 60 },
|
||||
isShowRetire: false,
|
||||
isProbation: false,
|
||||
});
|
||||
|
||||
const labelOption = reactive({
|
||||
type: "ข้าราชการ กทม.สามัญ",
|
||||
posType: "ทั้งหมด",
|
||||
posLevel: "ทั้งหมด",
|
||||
retireYear: "",
|
||||
node: "เลือกหน่วยงาน/ส่วนราชการ",
|
||||
});
|
||||
|
||||
return {
|
||||
fetchType,
|
||||
fetchLevel,
|
||||
|
|
@ -58,5 +81,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
posLevelOps,
|
||||
yearOps,
|
||||
mode,
|
||||
formFilter,
|
||||
labelOption,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue