hrms-mgt/src/modules/08_registryEmployee/router.ts

60 lines
1.4 KiB
TypeScript

/*** Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee) */
import { defineAsyncComponent } from "vue";
const Main = defineAsyncComponent(
() => import("@/modules/08_registryEmployee/views/Main.vue")
);
const DetailView = defineAsyncComponent(
() => import("@/modules/08_registryEmployee/views/DetailView.vue")
);
// const CreateEmployee = defineAsyncComponent(
// () => import("@/modules/08_registryEmployee/views/Add.vue")
// );
// const EditDetail = defineAsyncComponent(
// () => import("@/modules/08_registryEmployee/views/EditDetail.vue")
// );
export default [
{
path: "/registry-temp",
name: "registry-employee",
component: Main,
meta: {
Auth: true,
Key: "SYS_REGISTRY_TEMP",
Role: "STAFF",
},
},
{
path: "/registry-temp/:id",
name: "registry-employeeId",
component: DetailView,
meta: {
Auth: true,
Key: "SYS_REGISTRY_TEMP",
Role: "STAFF",
},
},
// {
// path: "/registry-employee/add",
// name: "registryEmployeeAdd",
// component: CreateEmployee,
// meta: {
// Auth: true,
// Key: [11],
// Role: "registryEmployee",
// },
// },
// {
// path: "/registry-employee/edit/:id",
// name: "registryEmployeeEdit",
// component: EditDetail,
// meta: {
// Auth: true,
// Key: [11],
// Role: "registryEmployee",
// },
// },
];