รายละเอียดโครงสร้าง
This commit is contained in:
parent
4cfcc2d018
commit
b96560ea78
2 changed files with 106 additions and 6 deletions
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue