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")
|
|
|
|
|
);
|
2024-06-10 18:00:12 +07:00
|
|
|
const DetailView = defineAsyncComponent(
|
|
|
|
|
() => import("@/modules/08_registryEmployee/views/DetailView.vue")
|
2023-07-07 15:29:37 +07:00
|
|
|
);
|
2023-09-20 00:44:21 +07:00
|
|
|
|
2024-06-10 18:00:12 +07:00
|
|
|
// const CreateEmployee = defineAsyncComponent(
|
|
|
|
|
// () => import("@/modules/08_registryEmployee/views/Add.vue")
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
// const EditDetail = defineAsyncComponent(
|
|
|
|
|
// () => import("@/modules/08_registryEmployee/views/EditDetail.vue")
|
|
|
|
|
// );
|
2023-07-03 17:16:37 +07:00
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
2024-08-09 11:45:58 +07:00
|
|
|
path: "/registry-temp",
|
2023-08-10 17:58:18 +07:00
|
|
|
name: "registry-employee",
|
2023-07-03 17:16:37 +07:00
|
|
|
component: Main,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-09 11:50:26 +07:00
|
|
|
Key: "SYS_REGISTRY_TEMP",
|
2024-08-01 14:48:51 +07:00
|
|
|
Role: "STAFF",
|
2023-07-03 17:16:37 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-07-07 15:29:37 +07:00
|
|
|
{
|
2024-08-09 11:45:58 +07:00
|
|
|
path: "/registry-temp/:id",
|
2024-06-10 18:00:12 +07:00
|
|
|
name: "registry-employeeId",
|
|
|
|
|
component: DetailView,
|
2023-07-27 14:15:30 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-09 11:50:26 +07:00
|
|
|
Key: "SYS_REGISTRY_TEMP",
|
2024-08-01 14:48:51 +07:00
|
|
|
Role: "STAFF",
|
2023-07-27 14:15:30 +07:00
|
|
|
},
|
|
|
|
|
},
|
2024-06-10 18:00:12 +07:00
|
|
|
// {
|
|
|
|
|
// 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",
|
|
|
|
|
// },
|
|
|
|
|
// },
|
2023-07-03 17:16:37 +07:00
|
|
|
];
|