hrms-user/src/modules/08_KPI/router.ts

56 lines
964 B
TypeScript
Raw Normal View History

2024-04-04 14:14:25 +07:00
/**
* Router
*/
const KPIPage = () => import("@/modules/08_KPI/views/main.vue");
const FormPage = () => import("@/modules/08_KPI/views/form.vue");
2024-04-22 09:39:04 +07:00
const KPIMainEvaluator = () => import("@/modules/08_KPI/views/mainEvaluator.vue");
2024-04-04 14:14:25 +07:00
export default [
{
path: "/KPI",
name: "KPIMain",
component: KPIPage,
meta: {
Auth: true,
Key: [8],
},
},
{
path: "/KPI/add",
name: "KPIAdd",
component: FormPage,
meta: {
Auth: true,
Key: [8.1],
},
},
{
path: "/KPI/:id",
name: "KPIEdit",
component: FormPage,
meta: {
Auth: true,
Key: [8.2],
},
},
2024-04-22 09:39:04 +07:00
{
path: "/KPI-evaluator",
name: "KPIMainEvaluator",
component: KPIMainEvaluator,
meta: {
Auth: true,
Key: [8.3],
},
},
{
path: "/KPI-evaluator/:id",
name: "KPIEditEvaluator",
component: FormPage,
meta: {
Auth: true,
Key: [8.4],
},
},
2024-04-04 14:14:25 +07:00
];