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

58 lines
1.3 KiB
TypeScript
Raw Normal View History

/*** Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee) */
2024-11-12 14:01:11 +07:00
const Main = () => import("@/modules/08_registryEmployee/views/Main.vue");
const DetailView = () =>
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,
2024-08-09 11:50:26 +07:00
Key: "SYS_REGISTRY_TEMP",
Role: "STAFF",
},
},
{
path: "/registry-temp/:id",
name: "registry-employeeId",
component: DetailView,
meta: {
Auth: true,
2024-08-09 11:50:26 +07:00
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",
// },
// },
];