ทะเบียนประวัติ ==> fix เลขที่ตำแหน่ง
This commit is contained in:
parent
6da4d8efc8
commit
a8f0a486e3
7 changed files with 43 additions and 22 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, reactive } from "vue";
|
||||
import { ref, reactive, computed } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||
import type {
|
||||
|
|
@ -9,13 +10,19 @@ import type {
|
|||
import type { FormFilter } from "@/modules/04_registryPerson/interface/request/Main";
|
||||
|
||||
export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
||||
const routerName = ref<any>()
|
||||
const searchTypeOption = ref<DataOption[]>([
|
||||
{ id: "fullName", name: "ชื่อ-นามสกุล" },
|
||||
{ id: "citizenId", name: "เลขประจำตัวประชาชน" },
|
||||
{ id: "position", name: "ตำแหน่งในสายงาน" },
|
||||
{ id: "posNo", name: "ตำแหน่งเลขที่" },
|
||||
]);
|
||||
const route = useRoute();
|
||||
const routerName = ref<any>();
|
||||
const searchTypeOption = computed<DataOption[]>(() => {
|
||||
return [
|
||||
{ id: "fullName", name: "ชื่อ-นามสกุล" },
|
||||
{ id: "citizenId", name: "เลขประจำตัวประชาชน" },
|
||||
{ id: "position", name: "ตำแหน่งในสายงาน" },
|
||||
{
|
||||
id: "posNo",
|
||||
name: route.name === "registryNew" ? "เลขที่ตำแหน่ง" : "ตำแหน่งเลขที่",
|
||||
},
|
||||
];
|
||||
});
|
||||
const employeeClassOps = ref<DataOption[]>([
|
||||
{ id: "officer", name: "ข้าราชการ กทม.สามัญ" },
|
||||
{ id: "perm", name: "ลูกจ้างประจำ" },
|
||||
|
|
@ -164,6 +171,6 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
retireTypeEmpOps,
|
||||
citizenId,
|
||||
displayOrderOps,
|
||||
routerName
|
||||
routerName,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue