hrms-mgt/src/modules/06_retirement/router.ts

260 lines
6.3 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
/**
* Router (Retirement)
*/
const Main = () => import("@/modules/06_retirement/views/Main.vue");
const Listretirement = () =>
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
const ListretirementDetail = () =>
import("@/modules/06_retirement/components/ListRetirement/TableList.vue");
2024-08-01 14:44:43 +07:00
// const resignOrder = () =>
// import("@/modules/06_retirement/components/resign/ResignOrder.vue");
const resign = () =>
import("@/modules/06_retirement/components/resign/Resign.vue");
const resignByid = () =>
import("@/modules/06_retirement/components/resign/ResignByid.vue");
2024-08-13 11:22:07 +07:00
const resignDetailbyid = () =>
import("@/modules/06_retirement/components/resign/ResignByid.vue");
const deceased = () =>
import("@/modules/06_retirement/components/resign/Deceased.vue");
const detaildeceased = () =>
import("@/modules/06_retirement/components/resign/DetailDeceased.vue");
const dismissOrder = () =>
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
const outDetail = () =>
import("@/modules/06_retirement/components/DismissOrder/outRegistry.vue");
2024-08-01 14:44:43 +07:00
// const dischargedMain = () =>
// import("@/modules/06_retirement/components/Discharged/dischargedMain.vue");
// const dischargedDetails = () =>
// import(
// "@/modules/06_retirement/components/Discharged/dischargedRegistry.vue"
// );
// const expulsionMain = () =>
// import("@/modules/06_retirement/components/Expulsion/expulsionMain.vue");
2024-08-01 14:44:43 +07:00
// const expulsionDetails = () =>
// import("@/modules/06_retirement/components/Expulsion/expulsionRegistry.vue");
2023-08-25 10:53:40 +07:00
const exitInterviewMain = () =>
2023-09-24 11:20:27 +07:00
import("@/modules/06_retirement/components/ExitInterview/exitMain.vue");
2023-08-25 10:53:40 +07:00
const exitInterviewDetails = () =>
2023-09-24 11:20:27 +07:00
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
2024-08-13 11:22:07 +07:00
const exitInterviewDetailsOnly = () =>
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
const exitInterviewEditQuestion = () =>
import("@/modules/06_retirement/components/ExitInterview/EditQuestion.vue");
const detaildeceasedByid = () =>
import("@/modules/06_retirement/components/resign/DetailByidDeceased.vue");
2023-06-01 12:54:58 +07:00
export default [
{
path: "/retirement",
name: "retirement",
component: Main,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RETIREMENT",
Role: "STAFF",
2023-06-01 12:54:58 +07:00
},
},
{
2024-08-01 14:44:43 +07:00
path: "/retirement/:retirementId",
name: "retirementid",
component: Listretirement,
2023-08-25 10:53:40 +07:00
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RETIREMENT",
Role: "STAFF",
2023-08-25 10:53:40 +07:00
},
},
{
path: "/retirement-detail/:retirementId",
name: "retirementidDetail",
component: ListretirementDetail,
meta: {
Auth: true,
Key: "SYS_RETIREMENT",
Role: "STAFF",
},
},
2023-08-25 10:53:40 +07:00
{
2024-08-01 14:44:43 +07:00
path: "/retirement/listretire/:id/:type",
name: "retirement/list/id/type",
component: Listretirement,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RETIREMENT",
Role: "STAFF",
},
},
{
2024-08-13 09:45:59 +07:00
path: "/retirement/exit-interview",
2024-08-01 14:44:43 +07:00
name: "exit-Interview",
component: exitInterviewMain,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
},
},
2023-07-17 14:56:08 +07:00
{
2024-08-13 09:45:59 +07:00
path: "/retirement/exit-interview/questionnair/:id",
2024-08-01 14:44:43 +07:00
name: "exit-Interview-details",
component: exitInterviewDetails,
2023-07-17 14:56:08 +07:00
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
2023-07-17 14:56:08 +07:00
},
},
2024-08-13 11:22:07 +07:00
{
path: "/retirement/exit-interview/questionnair-detail/:id",
name: "exit-Interview-detailsOnly",
component: exitInterviewDetailsOnly,
meta: {
Auth: true,
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
},
},
2023-07-24 16:01:11 +07:00
{
2024-08-13 09:45:59 +07:00
path: "/retirement/exit-interview/edit-question",
2024-08-01 14:44:43 +07:00
name: "ExitInterviewEditQuestion",
component: exitInterviewEditQuestion,
2023-07-24 16:01:11 +07:00
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RESIGN_INTERVIEW",
Role: "STAFF",
2023-07-24 16:01:11 +07:00
},
},
{
path: "/retirement/resign",
name: "resign",
component: resign,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RESIGN",
Role: "STAFF",
},
},
{
path: "/retirement/resign/:id",
name: "resignbyid",
component: resignByid,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_RESIGN",
Role: "STAFF",
2024-08-13 11:22:07 +07:00
},
},
{
path: "/retirement/resign-detail/:id",
name: "resignDetailbyid",
component: resignDetailbyid,
meta: {
Auth: true,
Key: "SYS_RESIGN",
Role: "STAFF",
},
},
2024-08-01 14:44:43 +07:00
// {
// path: "/retirement/resign-order",
// name: "resign-order",
// component: resignOrder,
// meta: {
// Auth: true,
// Key: "SYS_RESIGN",
// Role: "STAFF",
// },
// },
{
2024-08-01 14:44:43 +07:00
path: "/retirement/deceased",
name: "deceased",
component: deceased,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_PASSAWAY",
Role: "STAFF",
2023-07-24 18:14:25 +07:00
},
},
2023-08-08 16:50:50 +07:00
{
2024-08-01 14:44:43 +07:00
path: "/retirement/deceased/:id",
2023-08-08 16:50:50 +07:00
name: "deceased-detail",
component: detaildeceased,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_PASSAWAY",
Role: "STAFF",
2023-08-08 16:50:50 +07:00
},
},
{
2024-08-01 14:44:43 +07:00
path: "/retirement/deceased/detail/:id",
name: "deceased-detailByid",
component: detaildeceasedByid,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_PASSAWAY",
Role: "STAFF",
},
},
2023-07-24 18:14:25 +07:00
{
2024-08-01 14:44:43 +07:00
path: "/retirement/dismiss-order",
2023-07-24 18:14:25 +07:00
name: "dismiss-order",
component: dismissOrder,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_DISMISS",
Role: "STAFF",
},
},
{
2024-08-01 14:44:43 +07:00
path: "/retirement/dismiss-order/:id",
name: "outDetail",
component: outDetail,
meta: {
Auth: true,
2024-08-01 14:44:43 +07:00
Key: "SYS_DISMISS",
Role: "STAFF",
},
},
// {
// path: "/retirement/discharged",
// name: "discharged",
// component: dischargedMain,
// meta: {
// Auth: true,
// Key: [7.6],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/discharged/:id",
// name: "dischargedDetails",
// component: dischargedDetails,
// meta: {
// Auth: true,
// Key: [7.6],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/expulsion",
// name: "expulsion",
// component: expulsionMain,
// meta: {
// Auth: true,
// Key: [7.7],
// Role: "retirement",
// },
// },
// {
// path: "/retirement/expulsion/:id",
// name: "expulsionDetails",
// component: expulsionDetails,
// meta: {
// Auth: true,
// Key: [7.7],
// Role: "retirement",
// },
// },
2023-06-01 12:54:58 +07:00
];