โครงสร้างอัตรากำลัง => เพิ่ม isLock

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-13 17:24:13 +07:00
parent edbd250c54
commit 914072c8b6
5 changed files with 33 additions and 10 deletions

View file

@ -12,9 +12,9 @@ export const useOrganizational = defineStore("organizationalStore", () => {
const typeOrganizational = ref<string>("current"); // ประเภทโครงสร้าง
const statusView = ref<string>("list"); // การแสดงผล รายการ,map
const rootId = ref<string>('')
const isOfficer = ref<boolean|null>(null);
const isStaff = ref<boolean|null>(null);
const rootId = ref<string>("");
const isOfficer = ref<boolean | null>(null);
const isStaff = ref<boolean | null>(null);
const dataActive = ref<DataActive>(); //ข้อมูลโครงสร้าง
const activeId = ref<string>(); // id โครงสร้างปัจจุบัน
@ -24,6 +24,7 @@ export const useOrganizational = defineStore("organizationalStore", () => {
const treeId = ref<string>(); // id โหนด
const level = ref<number>(); // ระดับโหนด
const orgPublishDate = ref<Date | null>(null); // วันเผยแพร่
const isLosck = ref<boolean>(false);
const sumPosition = reactive({
total: 0,
use: 0,
@ -166,6 +167,7 @@ export const useOrganizational = defineStore("organizationalStore", () => {
getSumPosition,
isOfficer,
isStaff,
rootId
rootId,
isLosck,
};
});