hrms-mgt/src/modules/08_registryEmployee/router.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 c752fba862 fix import
2024-11-12 14:01:11 +07:00

57 lines
1.3 KiB
TypeScript

/*** Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee) */
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,
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",
// },
// },
];