hrms-mgt/src/modules/14_KPI/router.ts
2024-09-20 13:02:15 +07:00

93 lines
1.9 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 listPage = () => import("@/modules/14_KPI/views/list.vue");
const reportPage = () => import("@/modules/14_KPI/views/report.vue");
const detailView = () => import("@/modules/14_KPI/views/detailView.vue");
const detailViewPage = () => 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: "SYS_KPI_ROUND",
Role: "STAFF",
},
},
{
path: "/KPI-list",
name: "KPIList",
component: listPage,
meta: {
Auth: true,
Key: "SYS_KPI_LIST",
Role: "STAFF",
},
},
{
path: "/KPI-list/:id",
name: "KPIDetail",
component: detailView,
meta: {
Auth: true,
Key: "SYS_KPI_LIST",
Role: "STAFF",
},
},
{
path: "/KPI-list-detail/:id",
name: "KPIDetailPage",
component: detailViewPage,
meta: {
Auth: true,
Key: "SYS_KPI_LIST",
Role: "STAFF",
},
},
{
path: "/KPI/report",
name: "KPIReport",
component: reportPage,
meta: {
Auth: true,
Key: "SYS_REPORT",
Role: "STAFF",
},
},
{
path: "/KPI-list/new/:id",
name: "KPIDetailnew",
component: detailView,
meta: {
Auth: true,
Key: "SYS_KPI_LIST",
Role: "STAFF",
},
},
{
path: "/KPI/results",
name: "KPIResults",
component: ResultsView,
meta: {
Auth: true,
Key: "SYS_RESULT",
Role: "STAFF",
},
},
{
path: "/probation-detail/:id",
name: "probationMainDetail",
component: probationDetail,
meta: {
Auth: true,
Key: "SYS_KPI_LIST",
Role: "STAFF",
},
},
];