hrms-mgt/src/modules/06_retirement/storeRetirement.ts

18 lines
550 B
TypeScript
Raw Normal View History

2023-09-15 17:36:07 +07:00
import { defineStore } from "pinia";
import { ref } from 'vue'
export const useDataStoreRetirement = defineStore("retirementDatastore", () => {
const taboption = ref<any>([{ name: "officer", id: "officer", label: 'ขรก.กทม.สามัญ' },
{ name: "employee", id: "employee", label: "ลูกจ้างประจำ" }])
2023-09-15 17:36:07 +07:00
const tab = ref<any>("officer");
const type = ref<string>("officer");
const clickTab = (role: string) => {
type.value = role
2023-09-15 17:36:07 +07:00
}
return {
tab,
type,
clickTab,
taboption
2023-09-15 17:36:07 +07:00
};
});