updated route leave sys

This commit is contained in:
Warunee Tamkoo 2024-06-13 11:16:20 +07:00
parent 69f8b1e147
commit 9dae77573f
2 changed files with 16 additions and 42 deletions

View file

@ -46,7 +46,6 @@ const menuList = readonly<any[]>([
{ {
key: 1, key: 1,
icon: "mdi-home-variant-outline", icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "หน้าแรก", label: "หน้าแรก",
path: "dashboard", path: "dashboard",
role: "dashboard", role: "dashboard",
@ -54,7 +53,6 @@ const menuList = readonly<any[]>([
// { // {
// key: 2, // key: 2,
// icon: "o_person", // icon: "o_person",
// activeIcon: "person",
// label: "ข้อมูลหลัก", // label: "ข้อมูลหลัก",
// path: "metadataNew", // path: "metadataNew",
// role: "metadata", // role: "metadata",
@ -89,7 +87,6 @@ const menuList = readonly<any[]>([
{ {
key: 2, key: 2,
icon: "o_person", icon: "o_person",
activeIcon: "person",
label: "ข้อมูลการประเมิน", label: "ข้อมูลการประเมิน",
path: "metadataNew", path: "metadataNew",
role: "evaluateKPI", role: "evaluateKPI",
@ -133,7 +130,6 @@ const menuList = readonly<any[]>([
{ {
key: 3, key: 3,
icon: "o_groups", icon: "o_groups",
activeIcon: "groups",
label: "โครงสร้างอัตรากำลัง", label: "โครงสร้างอัตรากำลัง",
path: "organizationalNew", path: "organizationalNew",
role: "organization", role: "organization",
@ -162,7 +158,6 @@ const menuList = readonly<any[]>([
{ {
key: 4, key: 4,
icon: "verified", icon: "verified",
activeIcon: "verified",
label: "รายการรอตรวจสอบ", label: "รายการรอตรวจสอบ",
path: "verified", path: "verified",
role: "registryverify", role: "registryverify",
@ -170,7 +165,6 @@ const menuList = readonly<any[]>([
{ {
key: 6, key: 6,
icon: "mdi-file-certificate-outline", icon: "mdi-file-certificate-outline",
activeIcon: "order",
label: "ออกคำสั่ง", label: "ออกคำสั่ง",
path: "order", path: "order",
role: "order", role: "order",
@ -178,7 +172,6 @@ const menuList = readonly<any[]>([
{ {
key: 7, key: 7,
icon: "o_search", icon: "o_search",
activeIcon: "search",
label: "สรรหา", label: "สรรหา",
path: "recruiting", path: "recruiting",
role: "recruit", role: "recruit",
@ -246,7 +239,6 @@ const menuList = readonly<any[]>([
key: 8, key: 8,
path: "placement", path: "placement",
icon: "how_to_reg", icon: "how_to_reg",
activeIcon: "how_to_reg",
label: "บรรจุ แต่งตั้ง ย้าย โอน", label: "บรรจุ แต่งตั้ง ย้าย โอน",
role: "placement", role: "placement",
children: [ children: [
@ -305,7 +297,6 @@ const menuList = readonly<any[]>([
{ {
key: 81, key: 81,
icon: "badge", icon: "badge",
activeIcon: "badge",
label: "ทดลองปฏิบัติหน้าที่ราชการ", label: "ทดลองปฏิบัติหน้าที่ราชการ",
path: "probation", path: "probation",
role: "probation", role: "probation",
@ -313,7 +304,6 @@ const menuList = readonly<any[]>([
{ {
key: 9, key: 9,
icon: "mdi-account-cancel-outline", icon: "mdi-account-cancel-outline",
activeIcon: "mdi-account-cancel",
label: "พ้นจากราชการ", label: "พ้นจากราชการ",
path: "retirement", path: "retirement",
role: "retirement", role: "retirement",
@ -348,7 +338,6 @@ const menuList = readonly<any[]>([
{ {
key: 10, key: 10,
icon: "mdi-medal-outline", icon: "mdi-medal-outline",
activeIcon: "mdi-medal",
label: "เครื่องราชฯ", label: "เครื่องราชฯ",
path: "insignia", path: "insignia",
role: "insignia", role: "insignia",
@ -388,39 +377,38 @@ const menuList = readonly<any[]>([
{ {
key: 11, key: 11,
icon: "mdi-calendar", icon: "mdi-calendar",
activeIcon: "mdi-calendar",
label: "การลา", label: "การลา",
path: "leave", path: "leave",
role: "leave", role: "leave",
children: [ children: [
{ {
label: "รอบการปฏิบัติงาน", label: "รอบการปฏิบัติงาน",
path: "/round-time", path: "roundTime",
role: "leave", role: "leave",
}, },
{ {
label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน", label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน",
path: "/change-round", path: "changeRound",
role: "leave", role: "leave",
}, },
{ {
label: "รายการลงเวลาปฏิบัติงาน", label: "รายการลงเวลาปฏิบัติงาน",
path: "/work-list", path: "workList",
role: "leave", role: "leave",
}, },
{ {
label: "ลงเวลากรณีพิเศษ", label: "ลงเวลากรณีพิเศษ",
path: "/timestamp-special", path: "timestampSpecial",
role: "leave", role: "leave",
}, },
{ {
label: "รายการลา", label: "รายการลา",
path: "/leave", path: "leave",
role: "leave", role: "leave",
}, },
{ {
label: "รายงานสถิติการลา", label: "รายงานสถิติการลา",
path: "/leave-report", path: "leaveReport",
role: "leave", role: "leave",
}, },
], ],
@ -428,7 +416,6 @@ const menuList = readonly<any[]>([
{ {
key: 12, key: 12,
icon: "mdi-scale-balance", icon: "mdi-scale-balance",
activeIcon: "mdi-scale-balance",
label: "วินัย", label: "วินัย",
role: "discipline", role: "discipline",
children: [ children: [
@ -497,7 +484,6 @@ const menuList = readonly<any[]>([
{ {
key: 13, key: 13,
icon: "mdi-account-check", icon: "mdi-account-check",
activeIcon: "mdi-account-check",
label: "ประเมินบุคคล", label: "ประเมินบุคคล",
role: "evaluate", role: "evaluate",
children: [ children: [
@ -530,12 +516,11 @@ const menuList = readonly<any[]>([
{ {
key: 14, key: 14,
icon: "mdi-cash", icon: "mdi-cash",
activeIcon: "mdi-cash",
label: "เงินเดือน/ค่าจ้าง", label: "เงินเดือน/ค่าจ้าง",
role: "salary", role: "salary",
children: [ children: [
{ {
label: "ผังบัญชีเงินเดือนข้าราชการ ฯ", label: "ผังบัญชีเงินเดือนข้าราชการฯ",
path: "salaryChart", path: "salaryChart",
role: "salary", role: "salary",
}, },
@ -550,7 +535,7 @@ const menuList = readonly<any[]>([
role: "salary", role: "salary",
}, },
{ {
label: "เลื่อนเงินเดือนข้าราชการ ฯ", label: "เลื่อนเงินเดือนข้าราชการฯ",
path: "salaryLists", path: "salaryLists",
role: "salary", role: "salary",
}, },
@ -569,7 +554,6 @@ const menuList = readonly<any[]>([
{ {
key: 15, key: 15,
icon: "mdi-account-star", icon: "mdi-account-star",
activeIcon: "mdi-account-star",
label: "ประเมินผลการปฏิบัติราชการระดับบุคคล", label: "ประเมินผลการปฏิบัติราชการระดับบุคคล",
role: "evaluateKPI", role: "evaluateKPI",
children: [ children: [

View file

@ -14,7 +14,7 @@ const leaveReport = () =>
export default [ export default [
{ {
path: "/round-time", path: "/round-time",
name: "/round-time", name: "roundTime",
component: RoundMain, component: RoundMain,
meta: { meta: {
Auth: true, Auth: true,
@ -24,7 +24,7 @@ export default [
}, },
{ {
path: "/change-round", path: "/change-round",
name: "/change-round", name: "changeRound",
component: ChangeRoundMain, component: ChangeRoundMain,
meta: { meta: {
Auth: true, Auth: true,
@ -34,17 +34,7 @@ export default [
}, },
{ {
path: "/work-list", path: "/work-list",
name: "/work-list", name: "workList",
component: workMain,
meta: {
Auth: true,
Key: [9],
Role: "leave",
},
},
{
path: "/work-list",
name: "/work-list",
component: workMain, component: workMain,
meta: { meta: {
Auth: true, Auth: true,
@ -54,7 +44,7 @@ export default [
}, },
{ {
path: "/timestamp-special", path: "/timestamp-special",
name: "/timestamp-special", name: "timestampSpecial",
component: SpecialTimeMain, component: SpecialTimeMain,
meta: { meta: {
Auth: true, Auth: true,
@ -64,7 +54,7 @@ export default [
}, },
{ {
path: "/leave", path: "/leave",
name: "/leave", name: "leave",
component: leaveMain, component: leaveMain,
meta: { meta: {
Auth: true, Auth: true,
@ -74,7 +64,7 @@ export default [
}, },
{ {
path: "/leave/detail/:id", path: "/leave/detail/:id",
name: "/leave/detail", name: "leaveDetail",
component: leaveDetail, component: leaveDetail,
meta: { meta: {
Auth: true, Auth: true,
@ -84,7 +74,7 @@ export default [
}, },
{ {
path: "/leave-reject/detail/:id", path: "/leave-reject/detail/:id",
name: "/leave-reject/detail", name: "leaveRejectDetail",
component: leaveDetailReject, component: leaveDetailReject,
meta: { meta: {
Auth: true, Auth: true,
@ -94,7 +84,7 @@ export default [
}, },
{ {
path: "/leave-report", path: "/leave-report",
name: "/leave-report", name: "leaveReport",
component: leaveReport, component: leaveReport,
meta: { meta: {
Auth: true, Auth: true,