# Conflicts: # src/interface/request/main/main.ts # src/modules/08_registryEmployee/router.ts # src/modules/08_registryEmployee/views/Main.vue
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
/**
|
|
* Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee)
|
|
*/
|
|
import { defineAsyncComponent } from "vue";
|
|
|
|
// const Main = () => import("@/modules/08_registryEmployee/views/Main.vue");
|
|
// const Detail = () => import("@/modules/08_registryEmployee/views/Detail.vue");
|
|
const Main = defineAsyncComponent(
|
|
() => import("@/modules/08_registryEmployee/views/Main.vue")
|
|
);
|
|
const Detail = defineAsyncComponent(
|
|
() => import("@/modules/08_registryEmployee/views/Detail.vue")
|
|
);
|
|
const EditDetail = defineAsyncComponent(
|
|
() => import("@/modules/08_registryEmployee/views/EditDetail.vue")
|
|
);
|
|
|
|
export default [
|
|
{
|
|
path: "/registry-employee",
|
|
name: "registry-employee",
|
|
component: Main,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [11],
|
|
Role: "registryEmployee",
|
|
},
|
|
},
|
|
// {
|
|
// path: "/registryEmployee/:id",
|
|
// name: "registryEmployeeDetail",
|
|
// component: Detail,
|
|
// meta: {
|
|
// Auth: true,
|
|
// Key: [10],
|
|
// Role: "registryEmployeeDetails",
|
|
// },
|
|
// },
|
|
{
|
|
path: "/registry-employee/add",
|
|
name: "registryEmployeeAdd",
|
|
component: Detail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [11],
|
|
Role: "registryEmployee",
|
|
},
|
|
},
|
|
{
|
|
path: "/registry-employee/edit/:id",
|
|
name: "registryEmployeeEdit",
|
|
component: EditDetail,
|
|
meta: {
|
|
Auth: true,
|
|
Key: [11],
|
|
Role: "registryEmployee",
|
|
},
|
|
},
|
|
];
|