no message

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-30 18:00:58 +07:00
parent 06d9b22205
commit 756daf8d68
6 changed files with 124 additions and 181 deletions

View file

@ -32,6 +32,21 @@ export const useOrganizational = defineStore("organizationalStore", () => {
}
}
function convertType(type: string) {
switch (type) {
case "DEPARTMENT":
return "ระดับสำนัก";
case "OFFICE":
return "ระดับกอง/สำนักงาน/ส่วนราชการ/โรงพยาบาล/เทียบเท่ากอง";
case "DIVISION":
return "ระดับส่วน/กลุ่มภารกิจ";
case "SECTION":
return "ระดับฝ่าย/กลุ่มงาน";
default:
return "-";
}
}
return {
typeOrganizational,
statusView,
@ -39,6 +54,7 @@ export const useOrganizational = defineStore("organizationalStore", () => {
//
fetchDataActive,
checkLevel,
convertType,
draftId,
activeId,
};