API สร้างโครงสร้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-30 14:18:44 +07:00
parent cf69df74ac
commit f236159522
5 changed files with 338 additions and 265 deletions

View file

@ -17,12 +17,28 @@ export const useOrganizational = defineStore("organizationalStore", () => {
dataActive.value = data;
}
function checkLevel(type: number) {
switch (type) {
case 0:
return "Root";
case 1:
return "Child1";
case 2:
return "Child2";
case 3:
return "Child3";
default:
return "Child4";
}
}
return {
typeOrganizational,
statusView,
//
fetchDataActive,
checkLevel,
draftId,
activeId,
};