hrms-user/src/modules/06_evaluate/store.ts

35 lines
1 KiB
TypeScript
Raw Normal View History

2023-12-13 15:24:59 +07:00
import { defineStore } from "pinia";
import { ref } from "vue";
2023-12-14 14:49:27 +07:00
export const useEvaluateStore = defineStore("evaluateStore", () => {
2023-12-13 15:24:59 +07:00
const tabMenu = ref<string>("1");
2023-12-19 17:04:39 +07:00
const showLoadStatus = ref<boolean>(false);
2023-12-21 17:51:13 +07:00
const step = ref<number>(1);
2023-12-19 17:04:39 +07:00
const currentStep = ref<number>(1);
const title = ref<string[]>([
2023-12-13 15:24:59 +07:00
"ตรวจสอบคุณสมบัติ",
2023-12-19 17:04:39 +07:00
"จัดเตรียมเอกสารเล่ม 1",
"ตรวจสอบเอกสารเล่ม 1",
2023-12-13 15:24:59 +07:00
"รอตรวจสอบคุณสมบัติ",
"ประกาศบนเว็บไซต์",
"จัดเตรียมเอกสารเล่ม 2",
"ตรวจสอบเอกสารเล่ม 2",
"รอพิจารณาผล",
"เสร็จสิ้น",
]);
const tabPanels = ref<string>("1");
2023-12-19 10:56:51 +07:00
const evaluateId = ref<string>("");
2023-12-13 15:24:59 +07:00
return {
tabMenu,
step,
2023-12-19 17:04:39 +07:00
currentStep,
title,
2023-12-13 15:24:59 +07:00
tabPanels,
2023-12-19 17:04:39 +07:00
evaluateId,
showLoadStatus,
2023-12-13 15:24:59 +07:00
};
});