hrms-mgt/src/modules/14_KPI/router.ts
2024-07-15 15:29:15 +07:00

96 lines
2.3 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const roundPage = () => import("@/modules/14_KPI/views/round.vue");
const probationDetail = () => import("@/modules/14_KPI/views/mainDetail.vue");
// const IndicatorByPlan = () =>
// import("@/modules/14_KPI/views/indicatorByPlan.vue");
// const IndicatorByPlanDetail = () =>
// import("@/modules/14_KPI/components/indicatorByPlan/DetailView.vue");
// const IndicatorByRole = () =>
// import("@/modules/14_KPI/views/indicatorByRole.vue");
// const IndicatorByRoleDetail = () =>
// import("@/modules/14_KPI/components/indicatorByRole/DetailView.vue");
// const competencyPage = () => import("@/modules/14_KPI/views/competency.vue");
// const competencyAddPage = () =>
// import("@/modules/14_KPI/components/competency/AddPage.vue");
const listPage = () => import("@/modules/14_KPI/views/list.vue");
const detailPage = () => import("@/modules/14_KPI/views/detail.vue");
const reportPage = () => import("@/modules/14_KPI/views/report.vue");
const detailView = () => import("@/modules/14_KPI/views/detailView.vue");
const ResultsView = () => import("@/modules/14_KPI/views/resultsMain.vue");
export default [
{
path: "/KPI-round",
name: "KPIRound",
component: roundPage,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/KPI-list",
name: "KPIList",
component: listPage,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/KPI-list/:id",
name: "KPIDetail",
component: detailView,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/KPI/report",
name: "KPIReport",
component: reportPage,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/KPI-list/new/:id",
name: "KPIDetailnew",
component: detailView,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/KPI/results",
name: "KPIResults",
component: ResultsView,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
{
path: "/probation-detail/:id",
name: "probationMainDetail",
component: probationDetail,
meta: {
Auth: true,
Key: [1.1],
Role: "evaluateKPI",
},
},
];