add permission
This commit is contained in:
parent
b9b26f18de
commit
2842279165
9 changed files with 101 additions and 433 deletions
|
|
@ -49,7 +49,7 @@ const menuList = readonly<any[]>([
|
|||
activeIcon: "mdi-home-variant",
|
||||
label: "หน้าแรก",
|
||||
path: "dashboard",
|
||||
role: "dashboard",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
|
|
@ -57,7 +57,7 @@ const menuList = readonly<any[]>([
|
|||
activeIcon: "person",
|
||||
label: "ข้อมูลหลัก",
|
||||
path: "metadata",
|
||||
role: "metadata",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
children: [
|
||||
{
|
||||
key: 2.0,
|
||||
|
|
@ -91,7 +91,7 @@ const menuList = readonly<any[]>([
|
|||
icon: "mdi-account-badge",
|
||||
activeIcon: "groups",
|
||||
label: "จัดการผู้ใช้งานและสิทธิ์",
|
||||
role: "user_role",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
children: [
|
||||
{
|
||||
key: 2.0,
|
||||
|
|
@ -115,141 +115,10 @@ const menuList = readonly<any[]>([
|
|||
icon: "history",
|
||||
activeIcon: "groups",
|
||||
label: "ประวัติกิจกรรม (Logs)",
|
||||
role: "user_role",
|
||||
path: "viewLogs",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
},
|
||||
]);
|
||||
|
||||
const tabList = readonly<tabType[]>([
|
||||
{
|
||||
key: 1,
|
||||
label: "ข้อมูลทั่วไป",
|
||||
tag: "information",
|
||||
},
|
||||
{
|
||||
key: 19,
|
||||
label: "ประวัติการเปลี่ยนชื่อ",
|
||||
tag: "oldName",
|
||||
},
|
||||
{
|
||||
key: 16,
|
||||
label: "ข้อมูลราชการ",
|
||||
tag: "government",
|
||||
},
|
||||
{
|
||||
key: 17,
|
||||
label: "ข้อมูลที่อยู่",
|
||||
tag: "address",
|
||||
},
|
||||
{
|
||||
key: 18,
|
||||
label: "ข้อมูลครอบครัว",
|
||||
tag: "family",
|
||||
},
|
||||
{
|
||||
key: 15,
|
||||
label: "ใบอนุญาตประกอบวิชาชีพ",
|
||||
tag: "certicate",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
label: "ประวัติการศึกษา",
|
||||
tag: "education",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
label: "การฝึกอบรม/ดูงาน",
|
||||
tag: "training",
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
label: "เครื่องราชอิสริยาภรณ์",
|
||||
tag: "insignia",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
label: "ประกาศเกียรติคุณ",
|
||||
tag: "coined",
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
label: "ผลการประเมินปฏิบัติราชการ",
|
||||
tag: "assessment",
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
label: "ตำแหน่ง/เงินเดือน/ค่าจ้าง",
|
||||
tag: "position",
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
label: "วินัย",
|
||||
tag: "rule",
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
label: "การลา",
|
||||
tag: "leave",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
label: "ความสามารถพิเศษ",
|
||||
tag: "talent",
|
||||
},
|
||||
{
|
||||
key: 11,
|
||||
label: "ปฎิบัติราชการพิเศษ",
|
||||
tag: "work",
|
||||
},
|
||||
{
|
||||
key: 12,
|
||||
label: "บันทึกวันที่ไม่ได้รับเงินเดือนฯ",
|
||||
tag: "record",
|
||||
},
|
||||
{
|
||||
key: 13,
|
||||
label: "อื่นๆ",
|
||||
tag: "other",
|
||||
},
|
||||
{
|
||||
key: 14,
|
||||
label: "เอกสารหลักฐาน",
|
||||
tag: "document",
|
||||
},
|
||||
]);
|
||||
|
||||
const tabListPlacement = readonly<tabType[]>([
|
||||
{
|
||||
key: 1,
|
||||
label: "ข้อมูลทั่วไป",
|
||||
tag: "information",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
label: "ใบอนุญาตประกอบอาชีพ",
|
||||
tag: "certicate",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
label: "ประวัติการศึกษา",
|
||||
tag: "education",
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
label: "ผลการสอบ",
|
||||
tag: "examresult",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
label: "การคัดกรองคุณสมบัติ",
|
||||
tag: "qualification",
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
label: "เอกสารหลักฐาน",
|
||||
tag: "document",
|
||||
},
|
||||
]);
|
||||
|
||||
export { menuList, tabList, tabListPlacement };
|
||||
export { menuList };
|
||||
export type { ScrollType, tabType, menuType, notiType, optionType };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue