hrms-mgt/src/modules/09_leave/router.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 25b92f2768 ui รางงานสถิติ
2023-12-01 14:29:21 +07:00

117 lines
2.4 KiB
TypeScript

const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue");
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue");
const reportDetail = () =>
import("@/modules/09_leave/components/3_Report/DetailReport.vue");
const leaveDetail = () =>
import("@/modules/09_leave/components/2_Leave/DetailLeave.vue");
const leaveDetailReject = () =>
import("@/modules/09_leave/components/2_Leave/DetailLeaveReject.vue");
const RoundMain = () => import("@/modules/09_leave/views/RoundMain.vue");
const ChangeRoundMain = () =>
import("@/modules/09_leave/views/ChangeRoundMain.vue");
const SpecialTimeMain = () =>
import("@/modules/09_leave/views/SpecialTimeMain.vue");
export default [
{
path: "/round-time",
name: "/round-time",
component: RoundMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/change-round",
name: "/change-round",
component: ChangeRoundMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/work-list",
name: "/work-list",
component: workMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/work-list",
name: "/work-list",
component: workMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/timestamp-special",
name: "/timestamp-special",
component: SpecialTimeMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave",
name: "/leave",
component: leaveMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave/detail/:id",
name: "/leave/detail",
component: leaveDetail,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave-reject/detail/:id",
name: "/leave-reject/detail",
component: leaveDetailReject,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/statistics-report",
name: "/statistics-report",
component: reportMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/statistics-report/:type",
name: "/statistics-report-detail",
component: reportDetail,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
];