diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 7437487af..f998559b7 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -678,7 +678,39 @@ const menuList = readonly([ activeIcon: "mdi-account-star", label: "ประเมินผลการปฏิบัติราชการระดับบุคคล", role: "evaluateKPI", - path: "KPIMain", + children: [ + { + key: 13.1, + label: "รอบการประเมิน", + path: "KPIRound", + role: "evaluateKPI", + }, + { + key: 13.2, + label: "ตัวชี้วัด", + role: "evaluateKPI", + children: [ + { + key: 13.21, + label: "ตามแผนปฏิบัติราชการประจำปี", + path: "KPIIndicatorByPlan", + role: "evaluateKPI", + }, + { + key: 13.22, + label: "ตามหน้าที่ความรับผิดชอบ", + path: "KPIIndicatorByRole", + role: "evaluateKPI", + }, + ] + }, + { + key: 13.3, + label: "สมรรถนะ", + path: "KPICompetency", + role: "evaluateKPI", + }, + ] }, { key: 14, diff --git a/src/modules/14_KPI/router.ts b/src/modules/14_KPI/router.ts index e59a16a16..5340ce8e3 100644 --- a/src/modules/14_KPI/router.ts +++ b/src/modules/14_KPI/router.ts @@ -1,10 +1,43 @@ -const mainPage = () => import("@/modules/14_KPI/views/MainPage.vue"); +const roundPage = () => import("@/modules/14_KPI/views/round.vue"); +const IndicatorByPlan = () => import("@/modules/14_KPI/views/indicatorByPlan.vue"); +const IndicatorByRole = () => import("@/modules/14_KPI/views/indicatorByRole.vue"); +const competencyPage = () => import("@/modules/14_KPI/views/competency.vue"); export default [ { path: "/KPI", - name: "KPIMain", - component: mainPage, + name: "KPIRound", + component: roundPage, + meta: { + Auth: true, + Key: [1.1], + Role: "evaluateKPI", + }, + }, + { + path: "/KPI", + name: "KPIIndicatorByPlan", + component: IndicatorByPlan, + meta: { + Auth: true, + Key: [1.1], + Role: "evaluateKPI", + }, + }, + { + path: "/KPI", + name: "KPIIndicatorByRole", + component: IndicatorByRole, + meta: { + Auth: true, + Key: [1.1], + Role: "evaluateKPI", + }, + }, + { + path: "/KPI", + name: "KPICompetency", + component: competencyPage, meta: { Auth: true, Key: [1.1], diff --git a/src/modules/14_KPI/views/competency.vue b/src/modules/14_KPI/views/competency.vue new file mode 100644 index 000000000..ddec68619 --- /dev/null +++ b/src/modules/14_KPI/views/competency.vue @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/modules/14_KPI/views/indicatorByPlan.vue b/src/modules/14_KPI/views/indicatorByPlan.vue new file mode 100644 index 000000000..bc091d4a3 --- /dev/null +++ b/src/modules/14_KPI/views/indicatorByPlan.vue @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/modules/14_KPI/views/indicatorByRole.vue b/src/modules/14_KPI/views/indicatorByRole.vue new file mode 100644 index 000000000..ba4eeccc6 --- /dev/null +++ b/src/modules/14_KPI/views/indicatorByRole.vue @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/modules/14_KPI/views/MainPage.vue b/src/modules/14_KPI/views/round.vue similarity index 100% rename from src/modules/14_KPI/views/MainPage.vue rename to src/modules/14_KPI/views/round.vue diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 933f895b2..c7a2c685a 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -741,6 +741,7 @@ watch( menuItem.key == 9 || menuItem.key == 11 || menuItem.key == 12 || + menuItem.key == 13 || menuItem.key == 14 " > @@ -906,6 +907,7 @@ watch( menuItem.key == 9 || menuItem.key == 11 || menuItem.key == 12 || + menuItem.key == 13 || menuItem.key == 14 " > @@ -921,7 +923,7 @@ watch( -
+