hrms-mgt/src/modules/07_insignia/router.ts

140 lines
3.2 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
/**
* Router (insignia)
*/
2023-07-17 15:58:26 +07:00
const ReportView = () =>
import("../07_insignia/components/report/ReportView.vue");
const report_01 = () =>
import("../07_insignia/components/report/Report_01.vue");
const report_02 = () =>
import("../07_insignia/components/report/Report_02.vue");
2023-07-17 17:00:50 +07:00
const RecordInsignia = () =>
import("@/modules/07_insignia/views/ResultPage.vue");
const insigniaProposals = () =>
2023-09-20 19:51:57 +07:00
import("@/modules/07_insignia/components/1_Proposals/listProposals.vue");
const roundAdd = () =>
2023-09-20 19:51:57 +07:00
import("@/modules/07_insignia/components/1_Proposals/addProposals.vue");
const listMange = () =>
2023-09-20 19:51:57 +07:00
import("@/modules/07_insignia/components/2_Manage/listManage.vue");
const listAllocate = () =>
2023-08-26 15:59:09 +07:00
import("@/modules/07_insignia/components/4_Allocate/Main.vue");
const allocateOrdList = () =>
import("@/modules/07_insignia/components/4_Allocate/OrgList.vue");
2023-09-19 14:58:16 +07:00
// ยืม - คืนเครื่องราช
const insigniaBorrow = () =>
import("@/modules/07_insignia/components/5_Borrow/Main.vue");
2023-06-01 12:54:58 +07:00
export default [
{
2024-08-01 15:25:48 +07:00
path: "/insignia/round",
2023-07-17 16:03:00 +07:00
name: "insigniaProposals",
component: insigniaProposals,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
2023-07-17 16:03:00 +07:00
},
},
// {
// path: "/insignia/round/:id",
// name: "roundAddEdit",
// component: roundAdd,
// meta: {
// Auth: true,
// Key: "SYS_INSIGNIA_ROUND",
// Role: "STAFF",
// },
// },
// {
// path: "/insignia/round/add",
// name: "roundAdd",
// component: roundAdd,
// meta: {
// Auth: true,
// Key: "SYS_INSIGNIA_ROUND",
// Role: "STAFF",
// },
// },
2023-07-17 17:00:50 +07:00
2023-07-17 14:56:08 +07:00
{
2023-07-17 17:00:50 +07:00
path: "/insignia/record",
name: "insigniaRecord",
component: RecordInsignia,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_RECORD",
Role: "STAFF",
2023-07-17 14:56:08 +07:00
},
},
{
2023-07-17 16:00:29 +07:00
path: "/insignia/report",
2023-07-17 17:00:50 +07:00
name: "insigniaReport",
2023-07-17 16:00:29 +07:00
component: ReportView,
2023-07-17 14:56:08 +07:00
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
2023-07-17 14:56:08 +07:00
},
},
{
2023-07-17 16:00:29 +07:00
path: "/insignia/report/report-01",
name: "report-report-01",
component: report_01,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
path: "/insignia/report/report/:type",
name: "report-report",
component: report_02,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
path: "/insignia/manage/list-manage",
name: "insigniaManage",
component: listMange,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
{
path: "/insignia/allocate",
name: "insigniaAllocate",
component: listAllocate,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/allocate/org/:id",
2023-08-26 15:59:09 +07:00
name: "allocateOrdList",
component: allocateOrdList,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
path: "/insignia/borrow",
name: "insigniaBorrow",
component: insigniaBorrow,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_INSIGNIA_BORROW",
Role: "STAFF",
},
},
2023-06-01 12:54:58 +07:00
];