รายละเอียดโครงสร้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-13 16:34:43 +07:00
parent 4cfcc2d018
commit b96560ea78
2 changed files with 106 additions and 6 deletions

View file

@ -148,6 +148,24 @@ export const useOrganizational = defineStore("organizationalStore", () => {
}
}
/**
*
* @param type
* @returns
*/
function convertStatus(type: string) {
switch (type) {
case "current":
return "ปกติ";
case "draft":
return "แบบร่าง";
case "old":
return "ยุบเลิก";
default:
return "-";
}
}
return {
typeOrganizational,
statusView,
@ -171,5 +189,6 @@ export const useOrganizational = defineStore("organizationalStore", () => {
rootId,
isLosck,
remark,
convertStatus,
};
});