API สร้างโครงสร้าง
This commit is contained in:
parent
cf69df74ac
commit
f236159522
5 changed files with 338 additions and 265 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue