เพิ่ม ลูกจ้าง

This commit is contained in:
setthawutttty 2024-11-08 15:34:22 +07:00
parent 1ad01d8886
commit 4ae899a2c7
8 changed files with 3036 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import { ref, computed, reactive, watch } from "vue";
export const useDataStore = defineStore("resign", () => {
const mainTabs = ref<string>("1");
const mainTabsEMP = ref<string>("1");
const baseOptionStatus = ref<any[]>([
{
name: "รอดำเนินการ",
@ -62,10 +63,18 @@ export const useDataStore = defineStore("resign", () => {
(option) => option.group === mainTabs.value
);
});
const optionStatusEMP = computed(() => {
return baseOptionStatus.value.filter(
(option) => option.group === mainTabsEMP.value
);
});
watch(mainTabs, (val) => {
formQurey.status = "WAITTING";
});
watch(mainTabsEMP, (val) => {
formQurey.status = "WAITTING";
});
return { mainTabs, formQurey, optionStatus };
return { mainTabs, mainTabsEMP, formQurey, optionStatus, optionStatusEMP };
});