hrms-admin/src/modules/02_users/stores/main.ts

34 lines
752 B
TypeScript
Raw Normal View History

2024-05-29 17:58:57 +07:00
import { defineStore } from "pinia";
import { ref } from "vue";
2024-05-29 17:58:57 +07:00
import type { DataOption } from "@/modules/02_users/interface/index/Main";
export const useDataStoreUser = defineStore("storeDataUser", () => {
const searchFieldOption = ref<DataOption[]>([
{
name: "ชื่อ-นามสกุล",
id: "fullName",
},
{
name: "เลขที่ตำแหน่ง",
id: "posNo",
},
{
name: "ตำแหน่งในสายงาน",
id: "position",
},
{
name: "ประเภทตำแหน่ง",
id: "postype",
},
{
name: "ระดับตำแหน่ง",
id: "poslevel",
},
]);
return {
searchFieldOption,
};
2024-05-29 17:58:57 +07:00
});