2023-09-20 00:44:21 +07:00
|
|
|
/*** Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee) */
|
2023-07-07 15:29:37 +07:00
|
|
|
import { defineAsyncComponent } from "vue";
|
2023-07-03 17:16:37 +07:00
|
|
|
|
2023-07-07 15:29:37 +07:00
|
|
|
const Main = defineAsyncComponent(
|
|
|
|
|
() => import("@/modules/08_registryEmployee/views/Main.vue")
|
|
|
|
|
);
|
2023-09-20 00:44:21 +07:00
|
|
|
|
|
|
|
|
const CreateEmployee = defineAsyncComponent(
|
|
|
|
|
() => import("@/modules/08_registryEmployee/views/Add.vue")
|
2023-07-07 15:29:37 +07:00
|
|
|
);
|
2023-09-20 00:44:21 +07:00
|
|
|
|
2023-07-27 14:15:30 +07:00
|
|
|
const EditDetail = defineAsyncComponent(
|
|
|
|
|
() => import("@/modules/08_registryEmployee/views/EditDetail.vue")
|
|
|
|
|
);
|
2023-07-03 17:16:37 +07:00
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
2023-08-10 17:58:18 +07:00
|
|
|
path: "/registry-employee",
|
|
|
|
|
name: "registry-employee",
|
2023-07-03 17:16:37 +07:00
|
|
|
component: Main,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2023-08-16 17:01:57 +07:00
|
|
|
Key: [11],
|
2023-07-03 17:16:37 +07:00
|
|
|
Role: "registryEmployee",
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-07-07 15:29:37 +07:00
|
|
|
{
|
2023-08-10 17:58:18 +07:00
|
|
|
path: "/registry-employee/add",
|
2023-07-07 15:29:37 +07:00
|
|
|
name: "registryEmployeeAdd",
|
2023-09-20 00:44:21 +07:00
|
|
|
component: CreateEmployee,
|
2023-07-07 15:29:37 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
|
|
|
|
Key: [11],
|
|
|
|
|
Role: "registryEmployee",
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-07-27 14:15:30 +07:00
|
|
|
{
|
2023-08-10 17:58:18 +07:00
|
|
|
path: "/registry-employee/edit/:id",
|
2023-07-27 14:15:30 +07:00
|
|
|
name: "registryEmployeeEdit",
|
|
|
|
|
component: EditDetail,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
|
|
|
|
Key: [11],
|
|
|
|
|
Role: "registryEmployee",
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-07-03 17:16:37 +07:00
|
|
|
];
|